Skip to content

Commit

Permalink
MAC: IOS: enable manual nan/inf check when fast math is on
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Dec 6, 2024
1 parent cac0b3a commit 39839a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prog/dagorInclude/math/dag_check_nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#pragma float_control(push)
#pragma float_control(precise, on)
#endif
#if (__clang_major__ < 12 || (__clang_major__ >= 17 && __clang_major__ <= 18)) && defined(__clang__) && defined(__FAST_MATH__)
#if (__clang_major__ < 12 || (__clang_major__ >= 17 && __clang_major__ <= 19) || defined(__APPLE__)) && defined(__clang__) && \
defined(__FAST_MATH__)
// unfortunately older clang versions do not work with float_control, and in clang 17-18.1 it's broken
__forceinline DAG_FINITE_MATH bool check_nan(float a)
{
Expand Down

0 comments on commit 39839a7

Please sign in to comment.