Skip to content

Commit caf8a66

Browse files
committed
Add fast math as a condition for errhandling via exceptions
1 parent 1de422d commit caf8a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/include/llvm-libc-macros/math-macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
#define __LIBC_SUPPORTS_MATH_ERRNO 1
5252
#endif
5353

54-
#if (defined(__arm__) || defined(_M_ARM) || defined(__thumb__) || \
54+
#if defined(__FAST_MATH__) || ((defined(__arm__) || defined(_M_ARM) || defined(__thumb__) || \
5555
defined(__aarch64__) || defined(_M_ARM64)) && \
56-
!defined(__ARM_FP)
56+
!defined(__ARM_FP))
5757
#define __LIBC_SUPPORTS_MATH_ERREXCEPT 0
5858
#else
5959
#define __LIBC_SUPPORTS_MATH_ERREXCEPT 1

0 commit comments

Comments
 (0)