From 46139024eb0d5e27562f09821fb6178bab80d183 Mon Sep 17 00:00:00 2001 From: Lars Buitinck Date: Thu, 5 Sep 2013 10:48:37 +0200 Subject: [PATCH] some missing math.h functions and macros in math.pxd --- Cython/Includes/libc/math.pxd | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Cython/Includes/libc/math.pxd b/Cython/Includes/libc/math.pxd index 4ce8e72..78daf0a 100644 --- a/Cython/Includes/libc/math.pxd +++ b/Cython/Includes/libc/math.pxd @@ -1,5 +1,4 @@ cdef extern from "math.h" nogil: - double M_E double M_LOG2E double M_LOG10E @@ -14,6 +13,13 @@ cdef extern from "math.h" nogil: double M_SQRT2 double M_SQRT1_2 + # C99 constants + float INFINITY + float NAN + double HUGE_VAL + float HUGE_VALF + long double HUGE_VALL + double acos(double x) double asin(double x) double atan(double x) @@ -71,8 +77,15 @@ cdef extern from "math.h" nogil: long lround(double) double copysign(double, double) + float copysignf(float, float) + long double copysignl(long double, long double) + double erf(double) + float erff(float) + long double erfl(long double) double erfc(double) + double erfcf(double) + long double erfcl(double) double fdim(double x, double y) double fma(double x, double y) @@ -82,4 +95,3 @@ cdef extern from "math.h" nogil: double scalbn(double x, int n) double nan(char*) # const char* - -- 2.7.4