diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-06-01 19:05:46 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-06-25 23:12:39 +0000 |
commit | 2676061a91c99fa0b2633ceee881ea5bc31de4c2 (patch) | |
tree | 6ecc8b937a3f0e116d4b8d06ae8d15b048ce1a5f | |
parent | 3e5bea052bfaa8d0a073f5e924ccc882ce3909bc (diff) | |
download | glibc-2676061a91c99fa0b2633ceee881ea5bc31de4c2.tar.gz glibc-2676061a91c99fa0b2633ceee881ea5bc31de4c2.tar.xz glibc-2676061a91c99fa0b2633ceee881ea5bc31de4c2.zip |
Fix fmod for subnormals (bug 14048).
(cherry picked from commit c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index ae32903f52..833d639770 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,12 @@ * sysdeps/mach/configure: Likewise. * sysdeps/mach/hurd/configure: Likewise. +2012-06-01 Joseph Myers <joseph@codesourcery.com> + + [BZ #14048] + * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod): + Use int64_t for variable i. + 2012-05-17 Andreas Jaeger <aj@suse.de> Carlos O'Donell <carlos_odonell@mentor.com> diff --git a/NEWS b/NEWS index c8fbcb0d01..a804824d8f 100644 --- a/NEWS +++ b/NEWS @@ -10,7 +10,7 @@ Version 2.15.1 * The following bugs are resolved with this release: 411, 2547, 2548, 11365, 11494, 13583, 13731, 13732, 13733, 13747, 13748, - 13749, 13753, 13771, 13774, 13786, 14059, 14167 + 13749, 13753, 13771, 13774, 13786, 14048, 14059, 14167 Version 2.15 diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c b/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c index 0e20571a74..5158196766 100644 --- a/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c +++ b/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c @@ -24,8 +24,8 @@ static const double one = 1.0, Zero[] = {0.0, -0.0,}; double __ieee754_fmod (double x, double y) { - int32_t n,i,ix,iy; - int64_t hx,hy,hz,sx; + int32_t n,ix,iy; + int64_t hx,hy,hz,sx,i; EXTRACT_WORDS64(hx,x); EXTRACT_WORDS64(hy,y); |