stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r563904 - /incubator/stdcxx/trunk/include/limits
Date Wed, 08 Aug 2007 14:50:44 GMT
Author: sebor
Date: Wed Aug  8 07:50:43 2007
New Revision: 563904

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

	* limits (_RWSTD_FLT_INFINITY, _RWSTD_FLT_QNAN, _RWSTD_FLT_SNAN,
	_RWSTD_FLT_DENORM_MIN): Removed macro definitions and replaced
	their uses with the actual symbols).
	(_RWSTD_DBL_INFINITY, _RWSTD_DBL_QNAN, _RWSTD_DBL_SNAN,
	_RWSTD_DBL_DENORM_MIN, _RWSTD_LDBL_INFINITY, _RWSTD_LDBL_QNAN,
	_RWSTD_LDBL_SNAN, _RWSTD_LDBL_DENORM_MIN): Same.

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=563904&r1=563903&r2=563904
==============================================================================
--- incubator/stdcxx/trunk/include/limits (original)
+++ incubator/stdcxx/trunk/include/limits Wed Aug  8 07:50:43 2007
@@ -91,32 +91,18 @@
 _RWSTD_EXPORT extern const float       __rw_flt_infinity;
 _RWSTD_EXPORT extern const double      __rw_dbl_infinity;
 
-#define _RWSTD_FLT_INFINITY            _RW::__rw_flt_infinity
-#define _RWSTD_DBL_INFINITY            _RW::__rw_dbl_infinity
-
 _RWSTD_EXPORT extern const float       __rw_flt_qNaN;
 _RWSTD_EXPORT extern const double      __rw_dbl_qNaN;
 
-#define _RWSTD_FLT_QNAN                _RW::__rw_flt_qNaN
-#define _RWSTD_DBL_QNAN                _RW::__rw_dbl_qNaN
-
 _RWSTD_EXPORT extern const float       __rw_flt_denorm_min;
 _RWSTD_EXPORT extern const double      __rw_dbl_denorm_min;
 
-#define _RWSTD_FLT_DENORM_MIN          _RW::__rw_flt_denorm_min
-#define _RWSTD_DBL_DENORM_MIN          _RW::__rw_dbl_denorm_min
-
-
 #ifndef _RWSTD_NO_LONG_DOUBLE
 
 _RWSTD_EXPORT extern const long double __rw_ldbl_infinity;
 _RWSTD_EXPORT extern const long double __rw_ldbl_qNaN;
 _RWSTD_EXPORT extern const long double __rw_ldbl_denorm_min;
 
-#  define _RWSTD_LDBL_INFINITY         _RW::__rw_ldbl_infinity
-#  define _RWSTD_LDBL_QNAN             _RW::__rw_ldbl_qNaN
-#  define _RWSTD_LDBL_DENORM_MIN       _RW::__rw_ldbl_denorm_min
-
 #endif   // _RWSTD_NO_LONG_DOUBLE
 
 }   // namespace __rw
@@ -400,10 +386,10 @@
                    float_denorm_style (_RWSTD_FLT_HAS_DENORM));
     _RWSTD_STATIC (float, bool, has_denorm_loss, _RWSTD_HAS_DENORM_LOSS);
 
-    _RWSTD_STATIC_FUN (float, infinity,      _RWSTD_FLT_INFINITY)
-    _RWSTD_STATIC_FUN (float, quiet_NaN,     _RWSTD_FLT_QNAN)
-    _RWSTD_STATIC_FUN (float, signaling_NaN, _RWSTD_FLT_SNAN)
-    _RWSTD_STATIC_FUN (float, denorm_min,    _RWSTD_FLT_DENORM_MIN)
+    _RWSTD_STATIC_FUN (float, infinity,      _RW::__rw_flt_infinity)
+    _RWSTD_STATIC_FUN (float, quiet_NaN,     _RW::__rw_flt_qNaN)
+    _RWSTD_STATIC_FUN (float, signaling_NaN, _RW::__rw_flt_sNaN)
+    _RWSTD_STATIC_FUN (float, denorm_min,    _RW::__rw_flt_denorm_min)
 
     _RWSTD_STATIC (float, bool, is_iec559,  _RWSTD_IS_IEC559);
     _RWSTD_STATIC (float, bool, is_bounded, true);
@@ -447,10 +433,10 @@
                    float_denorm_style (_RWSTD_DBL_HAS_DENORM));
     _RWSTD_STATIC (double, bool, has_denorm_loss,   _RWSTD_HAS_DENORM_LOSS);
 
-    _RWSTD_STATIC_FUN (double, infinity,      _RWSTD_DBL_INFINITY)
-    _RWSTD_STATIC_FUN (double, quiet_NaN,     _RWSTD_DBL_QNAN)
-    _RWSTD_STATIC_FUN (double, signaling_NaN, _RWSTD_DBL_SNAN)
-    _RWSTD_STATIC_FUN (double, denorm_min,    _RWSTD_DBL_DENORM_MIN)
+    _RWSTD_STATIC_FUN (double, infinity,      _RW::__rw_dbl_infinity)
+    _RWSTD_STATIC_FUN (double, quiet_NaN,     _RW::__rw_dbl_qNaN)
+    _RWSTD_STATIC_FUN (double, signaling_NaN, _RW::__rw_dbl_sNaN)
+    _RWSTD_STATIC_FUN (double, denorm_min,    _RW::__rw_dbl_denorm_min)
 
     _RWSTD_STATIC (double, bool, is_iec559,  _RWSTD_IS_IEC559);
     _RWSTD_STATIC (double, bool, is_bounded, true);
@@ -496,10 +482,10 @@
                    float_denorm_style (_RWSTD_LDBL_HAS_DENORM));
     _RWSTD_STATIC (long double, bool, has_denorm_loss, _RWSTD_HAS_DENORM_LOSS);
 
-    _RWSTD_STATIC_FUN (long double, infinity,      _RWSTD_LDBL_INFINITY)
-    _RWSTD_STATIC_FUN (long double, quiet_NaN,     _RWSTD_LDBL_QNAN)
-    _RWSTD_STATIC_FUN (long double, signaling_NaN, _RWSTD_LDBL_SNAN)
-    _RWSTD_STATIC_FUN (long double, denorm_min,    _RWSTD_LDBL_DENORM_MIN)
+    _RWSTD_STATIC_FUN (long double, infinity,      _RW::__rw_ldbl_infinity)
+    _RWSTD_STATIC_FUN (long double, quiet_NaN,     _RW::__rw_ldbl_qNaN)
+    _RWSTD_STATIC_FUN (long double, signaling_NaN, _RW::__rw_ldbl_sNaN)
+    _RWSTD_STATIC_FUN (long double, denorm_min,    _RW::__rw_ldbl_denorm_min)
 
     _RWSTD_STATIC (long double, bool, is_iec559,  _RWSTD_IS_IEC559);
     _RWSTD_STATIC (long double, bool, is_bounded, true);



Mime
View raw message