From f4fd7b4c72428d56d4a43a6b04e6e5a6eae26c18 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 24 Feb 2005 18:50:06 +0000 Subject: 2005-02-24 Ralf Corsepious * libm/common/s_fpclassify.c: Use __uint32_t instead of int to manipulate float values in integer form. * libm/common/sf_round.c: Ditto. --- newlib/ChangeLog | 6 ++++++ newlib/libm/common/s_fpclassify.c | 4 ++-- newlib/libm/common/sf_round.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 47f5794be..e539fc567 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2005-02-24 Ralf Corsepious + + * libm/common/s_fpclassify.c: Use __uint32_t instead of int to + manipulate float values in integer form. + * libm/common/sf_round.c: Ditto. + 2005-02-24 Ralf Corsepious * libc/include/sys/types.h [__rtems__]: Include new diff --git a/newlib/libm/common/s_fpclassify.c b/newlib/libm/common/s_fpclassify.c index 2820f0373..111d70923 100644 --- a/newlib/libm/common/s_fpclassify.c +++ b/newlib/libm/common/s_fpclassify.c @@ -9,7 +9,7 @@ int __fpclassifyf (float x) { - unsigned int w; + __uint32_t w; GET_FLOAT_WORD(w,x); @@ -30,7 +30,7 @@ __fpclassifyf (float x) int __fpclassifyd (double x) { - unsigned int msw, lsw; + __uint32_t msw, lsw; EXTRACT_WORDS(msw,lsw,x); diff --git a/newlib/libm/common/sf_round.c b/newlib/libm/common/sf_round.c index 75a72fe75..db1cf548f 100644 --- a/newlib/libm/common/sf_round.c +++ b/newlib/libm/common/sf_round.c @@ -19,7 +19,7 @@ #endif { int signbit; - int w; + __uint32_t w; /* Most significant word, least significant word. */ int exponent_less_127; -- cgit v1.2.3