From: Joseph Myers Date: Fri, 1 Jun 2012 19:05:46 +0000 (+0000) Subject: Fix fmod for subnormals (bug 14048). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2676061a91c99fa0b2633ceee881ea5bc31de4c2;p=thirdparty%2Fglibc.git Fix fmod for subnormals (bug 14048). (cherry picked from commit c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc) --- diff --git a/ChangeLog b/ChangeLog index ae32903f520..833d6397705 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,12 @@ * sysdeps/mach/configure: Likewise. * sysdeps/mach/hurd/configure: Likewise. +2012-06-01 Joseph Myers + + [BZ #14048] + * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod): + Use int64_t for variable i. + 2012-05-17 Andreas Jaeger Carlos O'Donell diff --git a/NEWS b/NEWS index c8fbcb0d01d..a804824d8f5 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 0e20571a74c..5158196766a 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);