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

numpy-svn@scip... numpy-svn@scip...
Mon Nov 10 19:42:06 CST 2008


Author: charris
Date: 2008-11-10 19:41:59 -0600 (Mon, 10 Nov 2008)
New Revision: 5997

Modified:
   trunk/numpy/core/src/math_c99.inc.src
Log:
Fix exp2, log2 fallback functions.

Modified: trunk/numpy/core/src/math_c99.inc.src
===================================================================
--- trunk/numpy/core/src/math_c99.inc.src	2008-11-11 00:00:05 UTC (rev 5996)
+++ trunk/numpy/core/src/math_c99.inc.src	2008-11-11 01:41:59 UTC (rev 5997)
@@ -126,18 +126,18 @@
 
 #ifndef HAVE_EXP2
 #define LOG2 0.69314718055994530943
-double trunc(double x)
+double exp2(double x)
 {
-    return exp(LOG2*x)
+    return exp(LOG2*x);
 }
 #undef LOG2
 #endif
 
 #ifndef HAVE_LOG2
 #define INVLOG2 1.4426950408889634074
-double trunc(double x)
+double log2(double x)
 {
-    return INVLOG2*log(x)
+    return INVLOG2*log(x);
 }
 #undef INVLOG2
 #endif



More information about the Numpy-svn mailing list