Skip to content

Commit 178312d

Browse files
Force XSIMD_NO_INFINITIES XSIMD_NO_NANS and XSIMD_NO_DENORMALS under __FAST_MATH__
1 parent abf2d6b commit 178312d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/xsimd/xsimd.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
#ifndef XSIMD_HPP
1313
#define XSIMD_HPP
1414

15+
#if defined(__FAST_MATH__)
16+
#define XSIMD_NO_DENORMALS
17+
#define XSIMD_NO_INFINITIES
18+
#define XSIMD_NO_NANS
19+
#endif
20+
1521
#if defined(__has_cpp_attribute)
1622
// if this check passes, then the compiler supports feature test macros
1723
#if __has_cpp_attribute(nodiscard) >= 201603L

0 commit comments

Comments
 (0)