about summary refs log tree commit diff
path: root/sysdeps/ieee754/dbl-64/e_log.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-29 16:40:36 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-29 16:40:36 +0530
commitc2d94018c6963b63e95e4666feac976a97816972 (patch)
treec677fbc0ed1634d0b008ceec3b05a5889c834506 /sysdeps/ieee754/dbl-64/e_log.c
parent27ec37f185488a91521ddfbc42d74d8e783a29c9 (diff)
downloadglibc-c2d94018c6963b63e95e4666feac976a97816972.tar.gz
glibc-c2d94018c6963b63e95e4666feac976a97816972.tar.xz
glibc-c2d94018c6963b63e95e4666feac976a97816972.zip
Remove ONE and MONE
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_log.c')
-rw-r--r--sysdeps/ieee754/dbl-64/e_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_log.c b/sysdeps/ieee754/dbl-64/e_log.c
index f8d5a19ad0..f9300f9cef 100644
--- a/sysdeps/ieee754/dbl-64/e_log.c
+++ b/sysdeps/ieee754/dbl-64/e_log.c
@@ -91,7 +91,7 @@ __ieee754_log (double x)
 
   /* Regular values of x */
 
-  w = x - ONE;
+  w = x - 1;
   if (__builtin_expect (ABS (w) > U03, 1))
     goto case_03;
 
@@ -178,7 +178,7 @@ case_03:
   j = (num.i[HIGH_HALF] & 0x000fffff) >> 4;
 
   /* Compute w=(u-ui*vj)/(ui*vj) */
-  p0 = (ONE + (i - 75) * DEL_U) * (ONE + (j - 180) * DEL_V);
+  p0 = (1 + (i - 75) * DEL_U) * (1 + (j - 180) * DEL_V);
   q = u - p0;
   r0 = Iu[i].d * Iv[j].d;
   w = q * r0;
@@ -206,7 +206,7 @@ case_03:
 
   /* Improve the accuracy of r0 */
   EMULV (p0, r0, sa, sb, t1, t2, t3, t4, t5);
-  t = r0 * ((ONE - sa) - sb);
+  t = r0 * ((1 - sa) - sb);
   EADD (r0, t, ra, rb);
 
   /* Compute w */