stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r527385 - /incubator/stdcxx/trunk/include/limits
Date Wed, 11 Apr 2007 04:56:03 GMT
Author: sebor
Date: Tue Apr 10 21:56:02 2007
New Revision: 527385

URL: http://svn.apache.org/viewvc?view=rev&rev=527385
Log:
2007-04-10  Martin Sebor  <sebor@roguewave.com>

	* limits (_RWSTD_ROUND_STYLE): #defined to round_indeterminate
	when the configuration macro _RWSTD_FLT_ROUNDS is not #defined.

Modified:
    incubator/stdcxx/trunk/include/limits

Modified: incubator/stdcxx/trunk/include/limits
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/limits?view=diff&rev=527385&r1=527384&r2=527385
==============================================================================
--- incubator/stdcxx/trunk/include/limits (original)
+++ incubator/stdcxx/trunk/include/limits Tue Apr 10 21:56:02 2007
@@ -290,12 +290,16 @@
     round_toward_neg_infinity =  3
 };
 
-#define _RWSTD_ROUND_STYLE                                  \
-       0 == _RWSTD_FLT_ROUNDS ? round_toward_zero           \
-    :  1 == _RWSTD_FLT_ROUNDS ? round_to_nearest            \
-    :  2 == _RWSTD_FLT_ROUNDS ? round_toward_infinity       \
-    :  3 == _RWSTD_FLT_ROUNDS ? round_toward_neg_infinity   \
-    :  round_indeterminate
+#ifdef _RWSTD_FLT_ROUNDS
+#  define _RWSTD_ROUND_STYLE                                  \
+         0 == _RWSTD_FLT_ROUNDS ? round_toward_zero           \
+      :  1 == _RWSTD_FLT_ROUNDS ? round_to_nearest            \
+      :  2 == _RWSTD_FLT_ROUNDS ? round_toward_infinity       \
+      :  3 == _RWSTD_FLT_ROUNDS ? round_toward_neg_infinity   \
+      :  round_indeterminate
+#else   // if !defined (_RWSTD_FLT_ROUNDS)
+#  define _RWSTD_ROUND_STYLE   round_indeterminate
+#endif   // _RWSTD_FLT_ROUNDS
 
 
 enum float_denorm_style



Mime
View raw message