non-x86 support: Only use SSE2 when supported

Add generic version of viterbi decoder that does not utilize x86
intrinsics to provide support for other architectures such as ARM.
This commit is contained in:
Stephen Wolfe
2016-11-03 11:04:17 -04:00
parent d96ffc6ec8
commit c6502ae022
4 changed files with 290 additions and 3 deletions
+9
View File
@@ -85,6 +85,15 @@ endmacro(expand_cc_h_impl)
########################################################################
# Invoke macro to generate various sources
########################################################################
include (CheckCCompilerFlag)
CHECK_C_COMPILER_FLAG ("-msse2" SSE2_SUPPORTED)
if(SSE2_SUPPORTED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")
add_definitions(-DIEEE80211_MSSE2)
endif(SSE2_SUPPORTED)
expand_cc_h_impl(moving_average_XX cc ff)
add_custom_target(ieee802_11_generated_sources DEPENDS ${generated_sources})
add_dependencies(ieee802_11_generated_sources ieee802_11_generated_includes)