[Numpy-svn] r5773 - branches/clean_math_config/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Sep 4 22:12:42 CDT 2008


Author: cdavid
Date: 2008-09-04 22:12:37 -0500 (Thu, 04 Sep 2008)
New Revision: 5773

Modified:
   branches/clean_math_config/numpy/core/setup.py
Log:
Check for all float/long double C99 math funcs explicitely.

Modified: branches/clean_math_config/numpy/core/setup.py
===================================================================
--- branches/clean_math_config/numpy/core/setup.py	2008-09-05 01:20:09 UTC (rev 5772)
+++ branches/clean_math_config/numpy/core/setup.py	2008-09-05 03:12:37 UTC (rev 5773)
@@ -77,6 +77,19 @@
         if check_func(f):
             moredefs.append(name_to_defsymb(f))
 
+    c99_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor",
+"ceil", "rint", "trunc", "sqrt", "log10", "log", "exp", "expm1", "asin",
+"acos", "atan", "asinh", "acosh", "atanh", "hypot", "atan2", "pow", "fmod",
+"modf"]
+
+    for f in c99_funcs:
+        name = "%sl" % f
+        if check_func(name):
+            moredefs.append(name_to_defsymb(name))
+        name = "%sf" % f
+        if check_func(name):
+            moredefs.append(name_to_defsymb(name))
+
     # Keep this for compatibility for now
     for func_name, defsymbol in FUNCTIONS_TO_CHECK:
         if check_func(func_name):



More information about the Numpy-svn mailing list