This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++] numeric_limits: fp is_modulo


The is_modulo predicate is only defined by LIA-1 for 
integer types.  Thus there is no conceivable reason
for the target to override.

Ok?


r~


	* include/std/std_limits.h (__glibcpp_float_is_modulo,
	__glibcpp_double_is_modulo, __glibcpp_long_double_is_modulo): Kill.
	(numeric_limits<T>::is_modulo, T floating): Use false.

--- std_limits.h.orig	Sun Sep 22 12:16:19 2002
+++ std_limits.h	Sun Sep 22 12:22:13 2002
@@ -95,9 +95,6 @@
 #ifndef __glibcpp_float_has_denorm_loss
 #  define __glibcpp_float_has_denorm_loss false
 #endif
-#ifndef __glibcpp_float_is_modulo
-#  define __glibcpp_float_is_modulo false
-#endif
 #ifndef __glibcpp_float_traps
 #  define __glibcpp_float_traps false
 #endif
@@ -112,9 +109,6 @@
 #ifndef __glibcpp_double_has_denorm_loss
 #  define __glibcpp_double_has_denorm_loss false
 #endif
-#ifndef __glibcpp_double_is_modulo
-#  define __glibcpp_double_is_modulo false
-#endif
 #ifndef __glibcpp_double_traps
 #  define __glibcpp_double_traps false
 #endif
@@ -129,9 +123,6 @@
 #ifndef __glibcpp_long_double_has_denorm_loss
 #  define __glibcpp_long_double_has_denorm_loss false
 #endif
-#ifndef __glibcpp_long_double_is_modulo
-#  define __glibcpp_long_double_is_modulo false
-#endif
 #ifndef __glibcpp_long_double_traps
 #  define __glibcpp_long_double_traps false
 #endif
@@ -923,7 +914,7 @@
 
       static const bool is_iec559 = has_infinity && has_quiet_NaN;
       static const bool is_bounded = true;
-      static const bool is_modulo = __glibcpp_float_is_modulo;
+      static const bool is_modulo = false;
 
       static const bool traps = __glibcpp_float_traps;
       static const bool tinyness_before = __glibcpp_float_tinyness_before;
@@ -931,7 +922,6 @@
     };
 
 #undef __glibcpp_float_has_denorm_loss
-#undef __glibcpp_float_is_modulo
 #undef __glibcpp_float_traps
 #undef __glibcpp_float_tinyness_before
 
@@ -981,7 +971,7 @@
 
       static const bool is_iec559 = has_infinity && has_quiet_NaN;
       static const bool is_bounded = true;
-      static const bool is_modulo = __glibcpp_double_is_modulo;
+      static const bool is_modulo = false;
 
       static const bool traps = __glibcpp_double_traps;
       static const bool tinyness_before = __glibcpp_double_tinyness_before;
@@ -989,7 +979,6 @@
     };
 
 #undef __glibcpp_double_has_denorm_loss
-#undef __glibcpp_double_is_modulo
 #undef __glibcpp_double_traps
 #undef __glibcpp_double_tinyness_before
 
@@ -1040,7 +1029,7 @@
 
       static const bool is_iec559 = has_infinity && has_quiet_NaN;
       static const bool is_bounded = true;
-      static const bool is_modulo = __glibcpp_long_double_is_modulo;
+      static const bool is_modulo = false;
 
       static const bool traps = __glibcpp_long_double_traps;
       static const bool tinyness_before = __glibcpp_long_double_tinyness_before;
@@ -1048,7 +1037,6 @@
     };
 
 #undef __glibcpp_long_double_has_denorm_loss
-#undef __glibcpp_long_double_is_modulo
 #undef __glibcpp_long_double_traps
 #undef __glibcpp_long_double_tinyness_before
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]