2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>

* libm/common/s_fpclassify.c: Use __uint32_t instead of int to
        manipulate float values in integer form.
        * libm/common/sf_round.c: Ditto.
This commit is contained in:
Jeff Johnston 2005-02-24 18:50:06 +00:00
parent f2f8a9a229
commit f4fd7b4c72
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
* 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 <ralf.corsepius@rtems.org> 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/include/sys/types.h [__rtems__]: Include new * libc/include/sys/types.h [__rtems__]: Include new

View File

@ -9,7 +9,7 @@
int int
__fpclassifyf (float x) __fpclassifyf (float x)
{ {
unsigned int w; __uint32_t w;
GET_FLOAT_WORD(w,x); GET_FLOAT_WORD(w,x);
@ -30,7 +30,7 @@ __fpclassifyf (float x)
int int
__fpclassifyd (double x) __fpclassifyd (double x)
{ {
unsigned int msw, lsw; __uint32_t msw, lsw;
EXTRACT_WORDS(msw,lsw,x); EXTRACT_WORDS(msw,lsw,x);

View File

@ -19,7 +19,7 @@
#endif #endif
{ {
int signbit; int signbit;
int w; __uint32_t w;
/* Most significant word, least significant word. */ /* Most significant word, least significant word. */
int exponent_less_127; int exponent_less_127;