From f3049ab5f38ab81e04c137ce311d6452afa08b5f Mon Sep 17 00:00:00 2001 From: Steve Kargl Date: Mon, 3 Jun 2013 18:14:18 +0000 Subject: [PATCH] Update a comment to reflect that we are using an endpoint of an interval instead of a midpoint. --- lib/msun/ld128/s_expl.c | 2 +- lib/msun/ld80/s_expl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msun/ld128/s_expl.c b/lib/msun/ld128/s_expl.c index 60e6425d9f09..920643604f2e 100644 --- a/lib/msun/ld128/s_expl.c +++ b/lib/msun/ld128/s_expl.c @@ -226,7 +226,7 @@ expl(long double x) return (1.0L + x); } - /* Reduce x to (k*ln2 + midpoint[n2] + r1 + r2). */ + /* Reduce x to (k*ln2 + endpoint[n2] + r1 + r2). */ fn = x * INV_L + 0x1.8p112 - 0x1.8p112; n = (int)fn; n2 = (unsigned)n % INTERVALS; diff --git a/lib/msun/ld80/s_expl.c b/lib/msun/ld80/s_expl.c index 3499038d11ad..d53319f5b3b9 100644 --- a/lib/msun/ld80/s_expl.c +++ b/lib/msun/ld80/s_expl.c @@ -261,7 +261,7 @@ expl(long double x) ENTERI(); - /* Reduce x to (k*ln2 + midpoint[n2] + r1 + r2). */ + /* Reduce x to (k*ln2 + endpoint[n2] + r1 + r2). */ /* Use a specialized rint() to get fn. Assume round-to-nearest. */ fn = x * INV_L + 0x1.8p63 - 0x1.8p63; r = x - fn * L1 - fn * L2; /* r = r1 + r2 done independently. */