summaryrefslogtreecommitdiffstats
path: root/newlib/libm/common
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-04-16 15:39:46 +0000
committerNick Clifton <nickc@redhat.com>2009-04-16 15:39:46 +0000
commitcc0748930ba913902f812f99c6ff426df255a1e0 (patch)
treef8bdbed59e5784e745166ed776ca37eeaf3e2766 /newlib/libm/common
parent03897d8dda6706148fb7aae9e86730d4b5840e22 (diff)
downloadcygnal-cc0748930ba913902f812f99c6ff426df255a1e0.tar.gz
cygnal-cc0748930ba913902f812f99c6ff426df255a1e0.tar.bz2
cygnal-cc0748930ba913902f812f99c6ff426df255a1e0.zip
Add new binutils target: moxie
Diffstat (limited to 'newlib/libm/common')
-rw-r--r--newlib/libm/common/s_lrint.c2
-rw-r--r--newlib/libm/common/sf_lrint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/common/s_lrint.c b/newlib/libm/common/s_lrint.c
index 5c15dd5e7..af94af709 100644
--- a/newlib/libm/common/s_lrint.c
+++ b/newlib/libm/common/s_lrint.c
@@ -110,7 +110,7 @@ TWO52[2]={
GET_HIGH_WORD(i0, t);
/* Detect the all-zeros representation of plus and
minus zero, which fails the calculation below. */
- if ((i0 & ~(1 << 31)) == 0)
+ if ((i0 & ~(1L << 31)) == 0)
return 0;
j0 = ((i0 & 0x7ff00000) >> 20) - 1023;
i0 &= 0x000fffff;
diff --git a/newlib/libm/common/sf_lrint.c b/newlib/libm/common/sf_lrint.c
index 045a62f03..3c58c5d10 100644
--- a/newlib/libm/common/sf_lrint.c
+++ b/newlib/libm/common/sf_lrint.c
@@ -71,7 +71,7 @@ TWO23[2]={
GET_FLOAT_WORD (i0, t);
/* Detect the all-zeros representation of plus and
minus zero, which fails the calculation below. */
- if ((i0 & ~(1 << 31)) == 0)
+ if ((i0 & ~(1L << 31)) == 0)
return 0;
j0 = ((i0 >> 23) & 0xff) - 0x7f;
i0 &= 0x7fffff;