summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/dbl-64/e_fmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_fmod.c')
-rw-r--r--sysdeps/ieee754/dbl-64/e_fmod.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_fmod.c b/sysdeps/ieee754/dbl-64/e_fmod.c
index c83c2aedb2..e82b302200 100644
--- a/sysdeps/ieee754/dbl-64/e_fmod.c
+++ b/sysdeps/ieee754/dbl-64/e_fmod.c
@@ -45,7 +45,7 @@ __ieee754_fmod (double x, double y)
}
/* determine ix = ilogb(x) */
- if (__builtin_expect (hx < 0x00100000, 0)) /* subnormal x */
+ if (__glibc_unlikely (hx < 0x00100000)) /* subnormal x */
{
if (hx == 0)
{
@@ -62,7 +62,7 @@ __ieee754_fmod (double x, double y)
ix = (hx >> 20) - 1023;
/* determine iy = ilogb(y) */
- if (__builtin_expect (hy < 0x00100000, 0)) /* subnormal y */
+ if (__glibc_unlikely (hy < 0x00100000)) /* subnormal y */
{
if (hy == 0)
{
@@ -79,7 +79,7 @@ __ieee754_fmod (double x, double y)
iy = (hy >> 20) - 1023;
/* set up {hx,lx}, {hy,ly} and align y to x */
- if (__builtin_expect (ix >= -1022, 1))
+ if (__glibc_likely (ix >= -1022))
hx = 0x00100000 | (0x000fffff & hx);
else /* subnormal x, shift x to normal */
{
@@ -95,7 +95,7 @@ __ieee754_fmod (double x, double y)
lx = 0;
}
}
- if (__builtin_expect (iy >= -1022, 1))
+ if (__glibc_likely (iy >= -1022))
hy = 0x00100000 | (0x000fffff & hy);
else /* subnormal y, shift y to normal */
{
@@ -144,7 +144,7 @@ __ieee754_fmod (double x, double y)
hx = hx + hx + (lx >> 31); lx = lx + lx;
iy -= 1;
}
- if (__builtin_expect (iy >= -1022, 1)) /* normalize output */
+ if (__glibc_likely (iy >= -1022)) /* normalize output */
{
hx = ((hx - 0x00100000) | ((iy + 1023) << 20));
INSERT_WORDS (x, hx | sx, lx);