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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user