summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/fpu.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/fpu.hpp b/compat/fpu.hpp
index 9433648a..e72e8fdd 100644
--- a/compat/fpu.hpp
+++ b/compat/fpu.hpp
@@ -19,7 +19,11 @@ static inline void set_fp_mask()
#endif
#ifdef __APPLE__
+#if defined __386__ || defined __x86_64__
fesetenv(FE_DFL_DISABLE_SSE_DENORMS_ENV);
+#elif defined __arm64__
+ fesetenv(FE_DFL_DISABLE_DENORMS_ENV);
+#endif
#endif
#ifdef _WIN32