diff options
| author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-05-09 17:23:05 +0200 |
|---|---|---|
| committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-05-09 17:23:05 +0200 |
| commit | 3e2069003cd671cd5c4798d28a63c23b1dd7137e (patch) | |
| tree | 929cf62bfb5ddac3c7c462883a2c0999eab6a6d1 /numpy | |
| parent | 509bc25b4f71f9ffaf259b08b259d0e8aef2129a (diff) | |
| download | numpy-3e2069003cd671cd5c4798d28a63c23b1dd7137e.tar.gz | |
MAINT: document intrinsic macro guards
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 |
