* include/std/std_limits.h (numeric_limits<T>::is_iec559): False
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2002 22:39:28 +0000 (22:39 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2002 22:39:28 +0000 (22:39 +0000)
        if denormals are not supported.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57595 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_limits.h

index da24162..aa1c2a5 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-27  Richard Henderson  <rth@redhat.com>
+
+       * config/os/hpux/cpu_limits.h: Remove.
+
+       * include/std/std_limits.h (numeric_limits<T>::is_iec559): False
+       if denormals are not supported.
+
 2002-09-25  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/Makefile.am (target_headers): Remove cpu_limits.h.
index f8df6ba..be4b5f2 100644 (file)
@@ -911,7 +911,8 @@ namespace std
       static float denorm_min() throw()
       { return __FLT_DENORM_MIN__; }
 
-      static const bool is_iec559 = has_infinity && has_quiet_NaN;
+      static const bool is_iec559
+       = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
       static const bool is_bounded = true;
       static const bool is_modulo = false;
 
@@ -968,7 +969,8 @@ namespace std
       static double denorm_min() throw()
       { return __DBL_DENORM_MIN__; }
 
-      static const bool is_iec559 = has_infinity && has_quiet_NaN;
+      static const bool is_iec559
+       = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
       static const bool is_bounded = true;
       static const bool is_modulo = false;
 
@@ -1026,7 +1028,8 @@ namespace std
       static long double denorm_min() throw()
       { return __LDBL_DENORM_MIN__; }
 
-      static const bool is_iec559 = has_infinity && has_quiet_NaN;
+      static const bool is_iec559
+       = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
       static const bool is_bounded = true;
       static const bool is_modulo = false;