stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r290773 - /incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp
Date Wed, 21 Sep 2005 18:21:10 GMT
Author: sebor
Date: Wed Sep 21 11:21:07 2005
New Revision: 290773

URL: http://svn.apache.org/viewcvs?rev=290773&view=rev
Log:
2005-09-21  Martin Sebor  <sebor@roguewave.com>

	STDCXX-38
	* INFINITY.cpp: Moved declarations of locals above the point of their
	use (doh!) thus fixing a regression introduced into conditionally
	compiled code in the previous commit (rev 290491).


Modified:
    incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp?rev=290773&r1=290772&r2=290773&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/INFINITY.cpp Wed Sep 21 11:21:07 2005
@@ -761,6 +761,26 @@
 
 #endif   // _RWSTD_USE_CONFIG
 
+    const flt_bits f_inf  = flt_infinity ();
+    const flt_bits f_qnan = flt_qnan ();
+    const flt_bits f_snan = flt_snan ();
+    const flt_bits f_den  = flt_denorm_min ();
+
+    const dbl_bits d_inf  = dbl_infinity ();
+    const dbl_bits d_qnan = dbl_qnan ();
+    const dbl_bits d_snan = dbl_snan ();
+    const dbl_bits d_den  = dbl_denorm_min ();
+
+#ifndef _RWSTD_NO_LONG_DOUBLE
+
+    const ldbl_bits l_inf  = ldbl_infinity ();
+    const ldbl_bits l_qnan = ldbl_qnan ();
+    const ldbl_bits l_snan = ldbl_snan ();
+    const ldbl_bits l_den  = ldbl_denorm_min ();
+
+#endif   // _RWSTD_NO_LONG_DOUBLE
+
+
 #ifdef _RWSTD_NO_DBL_TRAPS
 
     printf ("// computed infinities and NANs for a %s endian architecture\n",
@@ -787,11 +807,6 @@
 
 #endif   // _RWSTD_NO_DBL_TRAPS
 
-    flt_bits f_inf  = flt_infinity ();
-    flt_bits f_qnan = flt_qnan ();
-    flt_bits f_snan = flt_snan ();
-    flt_bits f_den  = flt_denorm_min ();
-
     print ("#define _RWSTD_FLT_INF_BITS ", &f_inf, sizeof f_inf);
     print ("#define _RWSTD_FLT_QNAN_BITS ", &f_qnan, sizeof f_qnan);
     print ("#define _RWSTD_FLT_SNAN_BITS ", &f_snan, sizeof f_snan);
@@ -799,11 +814,6 @@
 
     printf ("#define _RWSTD_FLT_HAS_DENORM  %d\n", flt_has_denorm);
 
-    dbl_bits d_inf  = dbl_infinity ();
-    dbl_bits d_qnan = dbl_qnan ();
-    dbl_bits d_snan = dbl_snan ();
-    dbl_bits d_den  = dbl_denorm_min ();
-
     print ("#define _RWSTD_DBL_INF_BITS ", &d_inf, sizeof d_inf);
     print ("#define _RWSTD_DBL_QNAN_BITS ", &d_qnan, sizeof d_qnan);
     print ("#define _RWSTD_DBL_SNAN_BITS ", &d_snan, sizeof d_snan);
@@ -812,11 +822,6 @@
     printf ("#define _RWSTD_DBL_HAS_DENORM  %d\n", dbl_has_denorm);
 
 #ifndef _RWSTD_NO_LONG_DOUBLE
-
-    ldbl_bits l_inf  = ldbl_infinity ();
-    ldbl_bits l_qnan = ldbl_qnan ();
-    ldbl_bits l_snan = ldbl_snan ();
-    ldbl_bits l_den  = ldbl_denorm_min ();
 
     print ("#define _RWSTD_LDBL_INF_BITS ", &l_inf, sizeof l_inf);
     print ("#define _RWSTD_LDBL_QNAN_BITS ", &l_qnan, sizeof l_qnan);



Mime
View raw message