[svn:parrot] r40837 - trunk/config/gen/platform/netbsd

cotto at svn.parrot.org cotto at svn.parrot.org
Fri Aug 28 08:00:47 UTC 2009


Author: cotto
Date: Fri Aug 28 08:00:44 2009
New Revision: 40837
URL: https://trac.parrot.org/parrot/changeset/40837

Log:
[platform] netbsd fp variant selection fix from he++

Modified:
   trunk/config/gen/platform/netbsd/math.c
   trunk/config/gen/platform/netbsd/misc.c

Modified: trunk/config/gen/platform/netbsd/math.c
==============================================================================
--- trunk/config/gen/platform/netbsd/math.c	Fri Aug 28 04:54:47 2009	(r40836)
+++ trunk/config/gen/platform/netbsd/math.c	Fri Aug 28 08:00:44 2009	(r40837)
@@ -22,14 +22,8 @@
 
 */
 
-/*
- * force atan2() to use IEEE behavior
- */
-
 #include <math.h>
 
-_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
-
 #if DOUBLE_SIZE == 2 * INT_SIZE
 /*
 

Modified: trunk/config/gen/platform/netbsd/misc.c
==============================================================================
--- trunk/config/gen/platform/netbsd/misc.c	Fri Aug 28 04:54:47 2009	(r40836)
+++ trunk/config/gen/platform/netbsd/misc.c	Fri Aug 28 08:00:44 2009	(r40837)
@@ -26,17 +26,23 @@
 =item C<void Parrot_platform_init_code(void)>
 
 Initialize Parrot for the NetBSD platform.
-So far only turns off SIGFPE for Alpha.
+So far turns off SIGFPE for Alpha, and
+ensures IEEE floating-point semantics from
+the math library.
 
 =cut
 
 */
 
 #include <signal.h>
+#include <math.h>
 
 void
 Parrot_platform_init_code(void)
 {
+
+    _LIB_VERSION = _IEEE_;	/* force IEEE math semantics and behaviour */
+
 #if defined(__alpha__)
     signal(SIGFPE, SIG_IGN);
 #endif


More information about the parrot-commits mailing list