This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
infnan: more NV_SNAN/NV_QNAN
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 5 Feb 2015 03:06:10 +0000 (22:06 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 5 Feb 2015 03:15:55 +0000 (22:15 -0500)
perl.h

diff --git a/perl.h b/perl.h
index e8e268e..a9045c0 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -4340,16 +4340,18 @@ static const union { unsigned int __i; float __f; } __PL_inf_u =
 #endif
 #if !defined(NV_NAN) && defined(DBL_SNAN)
 #  define NV_NAN (NV)DBL_SNAN
-#  define NV_SNAN DBL_QNAN
+#  define NV_SNAN DBL_SNAN
 #endif
 #if !defined(NV_NAN) && defined(NAN)
 #  define NV_NAN (NV)NAN
 #endif
 #if !defined(NV_NAN) && defined(QNAN)
 #  define NV_NAN (NV)QNAN
+#  define NV_QNAN QNAN
 #endif
 #if !defined(NV_NAN) && defined(SNAN)
 #  define NV_NAN (NV)SNAN
+#  define NV_SNAN SNAN
 #endif
 #if !defined(NV_NAN) && defined(I_SUNMATH)
 #  define NV_NAN (NV)quiet_nan()