Skip to content

Commit

Permalink
fix apple denormal disablement
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Feb 5, 2025
1 parent 98fd16b commit 8bc1a09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compat/fpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bc1a09

Please sign in to comment.