Add compiler options for sse/sse2/ssse3/sse4.1
@@ -70,9 +70,21 @@ if (DEFINED TARGET)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
endif()
endif()
+ if (DEFINED HAVE_SSE)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse")
+ endif()
+ if (DEFINED HAVE_SSE2)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse2")
+ endif()
if (DEFINED HAVE_SSE3)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse3")
endif()
+ if (DEFINED HAVE_SSSE3)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mssse3")
+ endif()
+ if (DEFINED HAVE_SSE4_1)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse4.1")
+ endif()
endif()
if (DEFINED TARGET)
