Some math.h fixes, c99 isX macros.
authorRobert Bradshaw <robertwb@gmail.com>
Thu, 26 Sep 2013 02:53:58 +0000 (19:53 -0700)
committerRobert Bradshaw <robertwb@gmail.com>
Thu, 26 Sep 2013 02:53:58 +0000 (19:53 -0700)
Cython/Includes/libc/math.pxd

index 78daf0a..5711cd3 100644 (file)
@@ -84,8 +84,8 @@ cdef extern from "math.h" nogil:
     float erff(float)
     long double erfl(long double)
     double erfc(double)
-    double erfcf(double)
-    long double erfcl(double)
+    float erfcf(float)
+    long double erfcl(long double)
 
     double fdim(double x, double y)
     double fma(double x, double y)
@@ -94,4 +94,9 @@ cdef extern from "math.h" nogil:
     double scalbln(double x, long n)
     double scalbn(double x, int n)
 
-    double nan(char*) # const char*
+    double nan(const char*)
+    
+    bint isfinite(long double)
+    bint isnormal(long double)
+    bint isnan(long double)
+    bint isinf(long double)