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:
Diffstat (limited to 'newlib/libm/common/s_lrint.c')
-rw-r--r--newlib/libm/common/s_lrint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/common/s_lrint.c b/newlib/libm/common/s_lrint.c
index 45759f194..7d3b561b1 100644
--- a/newlib/libm/common/s_lrint.c
+++ b/newlib/libm/common/s_lrint.c
@@ -83,7 +83,8 @@ TWO52[2]={
else if (j0 < (int)(8 * sizeof (long int)) - 1)
{
if (j0 >= 52)
- result = ((long int) i0 << (j0 - 20)) | (i1 << (j0 - 52));
+ result = ((long int) ((i0 & 0x000fffff) | 0x0010000) << (j0 - 20)) |
+ (i1 << (j0 - 52));
else
{
w = TWO52[sx] + x;