Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-02-24 21:50:06 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-02-24 21:50:06 +0300
commitf4fd7b4c72428d56d4a43a6b04e6e5a6eae26c18 (patch)
treeb5baa6317c0ac02455605a1d000134c512d644fc
parentf2f8a9a2298b14b59a6e6e2a675cc117e2cbe157 (diff)
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.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libm/common/s_fpclassify.c4
-rw-r--r--newlib/libm/common/sf_round.c2
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,5 +1,11 @@
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>
+
* libc/include/sys/types.h [__rtems__]: Include new
header file machine/_types.h.
* libc/include/machine/types.h: Ditto.
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;