[svn:parrot] r42217 - trunk/src/string

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Mon Nov 2 05:12:33 UTC 2009


Author: dukeleto
Date: Mon Nov  2 05:12:32 2009
New Revision: 42217
URL: https://trac.parrot.org/parrot/changeset/42217

Log:
[cage] Use the math function pow() for now, until we get a configure-time check for powl(), which is an optional POSIX extension

Modified:
   trunk/src/string/api.c

Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c	Sun Nov  1 23:10:13 2009	(r42216)
+++ trunk/src/string/api.c	Mon Nov  2 05:12:32 2009	(r42217)
@@ -2321,12 +2321,12 @@
             return 0.0;
     }
 
-/* local macro to call proper pow version depending on FLOATVAL */
-#if NUMVAL_SIZE == DOUBLE_SIZE
+/* powl() could be used here, but it is an optional POSIX extension that
+   needs to be checked for at Configure-time.
+
+   See https://trac.parrot.org/parrot/ticket/1176 for more details. */
+
 #  define POW pow
-#else
-#  define POW powl
-#endif
 
      if (d && d_is_safe) {
         f = mantissa + (1.0 * d / POW(10.0, d_length));


More information about the parrot-commits mailing list