mirror of https://github.com/PentHertz/srsLTE.git
Fix SIMD neg operation which was inverted.
Re-enable -Werror.
This commit is contained in:
parent
4fb290ea27
commit
3fa5926cd5
|
@ -466,10 +466,10 @@ if("Ninja" STREQUAL ${CMAKE_GENERATOR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Add -Werror to C/C++ flags for newer compilers
|
# Add -Werror to C/C++ flags for newer compilers
|
||||||
#if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
|
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
|
||||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||||
#endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}")
|
message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}")
|
||||||
message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")
|
message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
|
@ -1560,7 +1560,7 @@ static inline simd_s_t srslte_simd_s_neg(simd_s_t a, simd_s_t b)
|
||||||
// -a
|
// -a
|
||||||
int16x8_t neg = vnegq_s16(a);
|
int16x8_t neg = vnegq_s16(a);
|
||||||
// bitwise select either a or neg based on ltMask
|
// bitwise select either a or neg based on ltMask
|
||||||
int16x8_t masked = vbslq_s16(ltMask, a, neg);
|
int16x8_t masked = vbslq_s16(ltMask, neg, a);
|
||||||
// res = masked & (~zeroMask)
|
// res = masked & (~zeroMask)
|
||||||
int16x8_t res = vbicq_s16(masked, zeroMask);
|
int16x8_t res = vbicq_s16(masked, zeroMask);
|
||||||
return res;
|
return res;
|
||||||
|
@ -2074,7 +2074,7 @@ static inline simd_b_t srslte_simd_b_neg(simd_b_t a, simd_b_t b)
|
||||||
// -a
|
// -a
|
||||||
int8x16_t neg = vnegq_s8(a);
|
int8x16_t neg = vnegq_s8(a);
|
||||||
// bitwise select either a or neg based on ltMask
|
// bitwise select either a or neg based on ltMask
|
||||||
int8x16_t masked = vbslq_s8(ltMask, a, neg);
|
int8x16_t masked = vbslq_s8(ltMask, neg, a);
|
||||||
// res = masked & (~zeroMask)
|
// res = masked & (~zeroMask)
|
||||||
int8x16_t res = vbicq_s8(masked, zeroMask);
|
int8x16_t res = vbicq_s8(masked, zeroMask);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue