[svn:parrot] r37133 - trunk/config/gen/platform/cygwin
rurban at svn.parrot.org
rurban at svn.parrot.org
Thu Mar 5 19:30:35 UTC 2009
Author: rurban
Date: Thu Mar 5 19:30:35 2009
New Revision: 37133
URL: https://trac.parrot.org/parrot/changeset/37133
Log:
[core] Add cygwin fallback to correct __POSIX__ math
behaviour (for atan2) if -D__STRICT_ANSI__
Modified:
trunk/config/gen/platform/cygwin/math.c
Modified: trunk/config/gen/platform/cygwin/math.c
==============================================================================
--- trunk/config/gen/platform/cygwin/math.c Thu Mar 5 19:14:16 2009 (r37132)
+++ trunk/config/gen/platform/cygwin/math.c Thu Mar 5 19:30:35 2009 (r37133)
@@ -22,12 +22,16 @@
*/
/*
- * force atan2() to use IEEE behavior
+ * force atan2() to use fast IEEE behavior
*/
#include <math.h>
+#ifndef __STRICT_ANSI__
_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
+#else
+_LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
+#endif
#if DOUBLE_SIZE == 2 * INT_SIZE
/*
@@ -63,7 +67,10 @@
=item C<int
Parrot_signbit_l(long double x)>
-RT#48260: Not yet documented!!!
+Same as Parrot_signbit for long double.
+
+Return true if the Numval has a negative sign.
+This is mostly for handling the -0.0 case.
=cut
More information about the parrot-commits
mailing list