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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 3 03:21:53 EDT 2008


Author: cdavid
Date: 2008-10-03 02:21:46 -0500 (Fri, 03 Oct 2008)
New Revision: 5901

Modified:
   branches/clean_math_config/numpy/core/SConscript
Log:
Check for some optional, C99 double math functions.

Modified: branches/clean_math_config/numpy/core/SConscript
===================================================================
--- branches/clean_math_config/numpy/core/SConscript	2008-10-03 07:21:31 UTC (rev 5900)
+++ branches/clean_math_config/numpy/core/SConscript	2008-10-03 07:21:46 UTC (rev 5901)
@@ -154,6 +154,13 @@
         for f in funcs:
             st = config.CheckFunc(f, language = 'C')
 
+# XXX: we do not test for hypot because python checks for it (HAVE_HYPOT in
+# python.h... I wish they would clean their public headers someday)
+optional_stdfuncs = ["expm1", "log1p", "acosh", "asinh", "atanh",
+                     "rint", "trunc"]
+
+check_funcs(optional_stdfuncs)
+
 def check_func(f):
     """Check that f is available in mlib, and add the symbol appropriately.  """
     st = config.CheckDeclaration(f, language = 'C', includes = "#include <math.h>")




More information about the Numpy-svn mailing list