aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-02-25 22:38:46 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-02-25 22:38:46 +0000
commit92a7e06eb8c5f521079d9e799bfa34f479bc61ba (patch)
tree6bf94312ca211849dfd2f4fd9fa1230f0481d462
parent1139537a2536b2ca1632f5ab991935ba25068bcb (diff)
downloadnewlib-92a7e06eb8c5f521079d9e799bfa34f479bc61ba.zip
newlib-92a7e06eb8c5f521079d9e799bfa34f479bc61ba.tar.gz
newlib-92a7e06eb8c5f521079d9e799bfa34f479bc61ba.tar.bz2
2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
* libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add L qualifier for these long constants.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libm/common/fdlibm.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index cc9fd91..f79530c 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
+
+ * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
+ L qualifier for these long constants.
+
2005-02-25 Eric Blake <ebb9@byu.net>
* libc/include/time.h (__tzrule_struct): Make offset long, since
diff --git a/newlib/libm/common/fdlibm.h b/newlib/libm/common/fdlibm.h
index 2b1bb79..7a0f28d 100644
--- a/newlib/libm/common/fdlibm.h
+++ b/newlib/libm/common/fdlibm.h
@@ -71,13 +71,13 @@
#define FLT_UWORD_IS_FINITE(x) ((x)<0x7f800000L)
#define FLT_UWORD_IS_NAN(x) ((x)>0x7f800000L)
#define FLT_UWORD_IS_INFINITE(x) ((x)==0x7f800000L)
-#define FLT_UWORD_MAX 0x7f7fffff
+#define FLT_UWORD_MAX 0x7f7fffffL
#define FLT_UWORD_EXP_MAX 0x43000000
#define FLT_UWORD_LOG_MAX 0x42b17217
#define FLT_UWORD_LOG_2MAX 0x42b2d4fc
#define HUGE ((float)3.40282346638528860e+38)
#endif
-#define FLT_UWORD_HALF_MAX (FLT_UWORD_MAX-(1<<23))
+#define FLT_UWORD_HALF_MAX (FLT_UWORD_MAX-(1L<<23))
#define FLT_LARGEST_EXP (FLT_UWORD_MAX>>23)
/* Many routines check for zero and subnormal numbers. Such things depend