|
|
|
@ -31,7 +31,8 @@ MARK_AS_ADVANCED(VOLK_LIBRARIES VOLK_INCLUDE_DIRS VOLK_DEFINITIONS)
|
|
|
|
|
IF(VOLK_FOUND)
|
|
|
|
|
SET(CMAKE_REQUIRED_LIBRARIES ${VOLK_LIBRARIES} m)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_16i_s32f_convert_32f HAVE_VOLK_CONVERT_IF_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_index_max_16u HAVE_VOLK_MAX_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_index_max_16u HAVE_VOLK_MAX_FUNCTION_16)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_index_max_32u HAVE_VOLK_MAX_FUNCTION_32)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_x2_max_32f HAVE_VOLK_MAX_VEC_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_accumulator_s32f HAVE_VOLK_ACC_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_s32fc_multiply_32fc HAVE_VOLK_MULT_FUNCTION)
|
|
|
|
@ -55,7 +56,8 @@ IF(VOLK_FOUND)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_x2_add_32f HAVE_VOLK_ADD_FLOAT_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_x2_square_dist_32f HAVE_VOLK_SQUARE_DIST_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_deinterleave_real_32f HAVE_VOLK_DEINTERLEAVE_REAL_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_index_max_16u HAVE_VOLK_MAX_ABS_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_index_max_16u HAVE_VOLK_MAX_ABS_FUNCTION_16)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32fc_index_max_32u HAVE_VOLK_MAX_ABS_FUNCTION_32)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_32f_x2_multiply_32f HAVE_VOLK_MULT_REAL2_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_16i_max_star_16i HAVE_VOLK_MAX_STAR_S_FUNCTION)
|
|
|
|
|
CHECK_FUNCTION_EXISTS_MATH(volk_8i_convert_16i HAVE_VOLK_CONVERT_CI_FUNCTION)
|
|
|
|
@ -75,8 +77,11 @@ IF(VOLK_FOUND)
|
|
|
|
|
IF(${HAVE_VOLK_MAX_STAR_S_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_STAR_S_FUNCTION")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_MAX_ABS_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_ABS_FUNCTION")
|
|
|
|
|
IF(${HAVE_VOLK_MAX_ABS_FUNCTION_16})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_ABS_FUNCTION_16")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_MAX_ABS_FUNCTION_32})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_ABS_FUNCTION_32")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_MAX_VEC_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_VEC_FUNCTION")
|
|
|
|
@ -111,8 +116,11 @@ IF(VOLK_FOUND)
|
|
|
|
|
IF(${HAVE_VOLK_CONVERT_FI_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_CONVERT_FI_FUNCTION")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_MAX_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_FUNCTION")
|
|
|
|
|
IF(${HAVE_VOLK_MAX_FUNCTION_16})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_FUNCTION_16")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_MAX_FUNCTION_32})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_MAX_FUNCTION_32")
|
|
|
|
|
ENDIF()
|
|
|
|
|
IF(${HAVE_VOLK_ACC_FUNCTION})
|
|
|
|
|
SET(VOLK_DEFINITIONS "${VOLK_DEFINITIONS}; HAVE_VOLK_ACC_FUNCTION")
|
|
|
|
|