Enable SSE2 instructions

We need this to enable FTZ in 3aac8e3483.
SSSE2 is a default on x86_64, but we need to explicitly enable it when
compiling the 32-bit bitbridge.
This commit is contained in:
Robbert van der Helm
2021-04-27 23:46:25 +02:00
parent 2be41da9b6
commit a12e0dcc27
+4
View File
@@ -38,6 +38,10 @@ compiler_options = [
# Disable the use of concepts in Boost.Asio until Boost 1.73 gets released
# https://github.com/boostorg/asio/issues/312
'-DBOOST_ASIO_DISABLE_CONCEPTS',
# When the `force_ftz` option is enabled, we use an intrinsic to force
# flush-to-zero. SSE2 is always enabled in x86_64 CPUs, but when we're
# compiling the 32-bit bitbridge we need to manually add this flag.
'-msse2',
]
# NOTE: GCC doesn't 8-byte align doubles in structs on x86 for ABI-compatibilty
# reasons, but MSVC++ does. We need to force this same alignment to be