diff options
author | David Cournapeau <cournape@gmail.com> | 2009-02-18 17:30:41 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-02-18 17:30:41 +0000 |
commit | 6d74ee757c2d49962a51600bfbf38fdfc1b00007 (patch) | |
tree | f5a90fd50f6666b36a498fddb1f90fa827678a4c /numpy/core/src/numpyos.c | |
parent | 64fdf5eac219235987c03fd4089c5bd57aad63bb (diff) | |
download | numpy-6d74ee757c2d49962a51600bfbf38fdfc1b00007.tar.gz |
Remove umath_funcs_c99.inc.src.
Diffstat (limited to 'numpy/core/src/numpyos.c')
-rw-r--r-- | numpy/core/src/numpyos.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/core/src/numpyos.c b/numpy/core/src/numpyos.c index 5408851f9..ca7cdafe9 100644 --- a/numpy/core/src/numpyos.c +++ b/numpy/core/src/numpyos.c @@ -1,6 +1,8 @@ #include <locale.h> #include <stdio.h> +#include "numpy/npy_math.h" + /* From the C99 standard, section 7.19.6: The exponent always contains at least two digits, and only as many more digits as necessary to represent the exponent. @@ -249,21 +251,21 @@ _fix_ascii_format(char* buf, size_t buflen, int decimal) const char *format, \ type val, int decimal) \ { \ - if (isfinite(val)) { \ + if (npy_isfinite(val)) { \ if(_check_ascii_format(format)) { \ return NULL; \ } \ PyOS_snprintf(buffer, buf_size, format, (print_type)val); \ return _fix_ascii_format(buffer, buf_size, decimal); \ } \ - else if (isnan(val)){ \ + else if (npy_isnan(val)){ \ if (buf_size < 4) { \ return NULL; \ } \ strcpy(buffer, "nan"); \ } \ else { \ - if (signbit(val)) { \ + if (npy_signbit(val)) { \ if (buf_size < 5) { \ return NULL; \ } \ |