[Numpy-svn] r6182 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sun Dec 21 00:03:23 CST 2008


Author: cdavid
Date: 2008-12-21 00:03:19 -0600 (Sun, 21 Dec 2008)
New Revision: 6182

Modified:
   trunk/numpy/core/src/umath_funcs_c99.inc.src
Log:
Do not define math func as static: better to have a link error when we have a config problem than having two functions with the same name.

Modified: trunk/numpy/core/src/umath_funcs_c99.inc.src
===================================================================
--- trunk/numpy/core/src/umath_funcs_c99.inc.src	2008-12-21 06:03:05 UTC (rev 6181)
+++ trunk/numpy/core/src/umath_funcs_c99.inc.src	2008-12-21 06:03:19 UTC (rev 6182)
@@ -56,8 +56,7 @@
 
 /* Original code by Konrad Hinsen.  */
 #ifndef HAVE_EXPM1
-static double
-expm1(double x)
+double expm1(double x)
 {
     double u = exp(x);
     if (u == 1.0) {
@@ -71,8 +70,7 @@
 #endif
 
 #ifndef HAVE_LOG1P
-static double
-log1p(double x)
+double log1p(double x)
 {
     double u = 1. + x;
     if (u == 1.0) {
@@ -84,8 +82,7 @@
 #endif
 
 #ifndef HAVE_HYPOT
-static double
-hypot(double x, double y)
+double hypot(double x, double y)
 {
     double yx;
 
@@ -106,16 +103,14 @@
 #endif
 
 #ifndef HAVE_ACOSH
-static double
-acosh(double x)
+double acosh(double x)
 {
     return 2*log(sqrt((x+1.0)/2)+sqrt((x-1.0)/2));
 }
 #endif
 
 #ifndef HAVE_ASINH
-static double
-asinh(double xx)
+double asinh(double xx)
 {
     double x, d;
     int sign;
@@ -137,8 +132,7 @@
 #endif
 
 #ifndef HAVE_ATANH
-static double
-atanh(double x)
+double atanh(double x)
 {
     if (x > 0) {
         return -0.5*log1p(-2.0*x/(1.0 + x));
@@ -150,8 +144,7 @@
 #endif
 
 #ifndef HAVE_RINT
-static double
-rint(double x)
+double rint(double x)
 {
     double y, r;
 
@@ -173,8 +166,7 @@
 #endif
 
 #ifndef HAVE_TRUNC
-static double
-trunc(double x)
+double trunc(double x)
 {
     return x < 0 ? ceil(x) : floor(x);
 }
@@ -182,8 +174,7 @@
 
 #ifndef HAVE_EXP2
 #define LOG2 0.69314718055994530943
-static double
-exp2(double x)
+double exp2(double x)
 {
     return exp(LOG2*x);
 }
@@ -192,8 +183,7 @@
 
 #ifndef HAVE_LOG2
 #define INVLOG2 1.4426950408889634074
-static double
-log2(double x)
+double log2(double x)
 {
     return INVLOG2*log(x);
 }
@@ -275,8 +265,7 @@
 #undef @kind@@c@
 #endif
 #ifndef HAVE_@KIND@@C@
-static @type@
-@kind@@c@(@type@ x)
+@type@ @kind@@c@(@type@ x)
 {
     return (@type@) @kind@((double)x);
 }
@@ -292,8 +281,7 @@
 #undef @kind@@c@
 #endif
 #ifndef HAVE_@KIND@@C@
-static @type@
-@kind@@c@(@type@ x, @type@ y)
+@type@ @kind@@c@(@type@ x, @type@ y)
 {
     return (@type@) @kind@((double)x, (double) y);
 }
@@ -304,8 +292,7 @@
 #undef modf@c@
 #endif
 #ifndef HAVE_MODF@C@
-static @type@
-modf@c@(@type@ x, @type@ *iptr)
+@type@ modf@c@(@type@ x, @type@ *iptr)
 {
     double niptr;
     double y = modf((double)x, &niptr);



More information about the Numpy-svn mailing list