diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/include/numpy/npy_math.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h index 1d8dcf5bf..625999022 100644 --- a/numpy/core/include/numpy/npy_math.h +++ b/numpy/core/include/numpy/npy_math.h @@ -152,8 +152,8 @@ double npy_spacing(double x); * IEEE 754 fpu handling. Those are guaranteed to be macros */ -/* use a builtins to avoid function calls in tight loops - * documented only on 4.4, but available in at least 4.2 */ +/* use builtins to avoid function calls in tight loops + * only available if npy_config.h is available (= numpys own build) */ #if HAVE___BUILTIN_ISNAN #define npy_isnan(x) __builtin_isnan(x) #else @@ -169,6 +169,7 @@ double npy_spacing(double x); #endif +/* only available if npy_config.h is available (= numpys own build) */ #if HAVE___BUILTIN_ISFINITE #define npy_isfinite(x) __builtin_isfinite(x) #else @@ -183,6 +184,7 @@ double npy_spacing(double x); #endif #endif +/* only available if npy_config.h is available (= numpys own build) */ #if HAVE___BUILTIN_ISINF #define npy_isinf(x) __builtin_isinf(x) #else |
