Micro-optimization: move the unary mius operator to operate
on a literal constant. Obtained from: bde
This commit is contained in:
parent
a3f70b4ed8
commit
35cbca6a7f
@ -261,7 +261,7 @@ expl(long double x)
|
||||
n2 = (unsigned)n % INTERVALS;
|
||||
k = n >> LOG2_INTERVALS;
|
||||
r1 = x - fn * L1;
|
||||
r2 = -fn * L2;
|
||||
r2 = fn * -L2;
|
||||
|
||||
/* Prepare scale factors. */
|
||||
v.xbits.manh = 0;
|
||||
|
@ -275,10 +275,10 @@ expl(long double x)
|
||||
/* Depend on the sign bit being propagated: */
|
||||
k = n >> LOG2_INTERVALS;
|
||||
r1 = x - fn * L1;
|
||||
r2 = -fn * L2;
|
||||
r2 = fn * -L2;
|
||||
|
||||
/* Prepare scale factors. */
|
||||
v.xbits.man = 1ULL << 63;
|
||||
v.e = 1ULL << 63;
|
||||
if (k >= LDBL_MIN_EXP) {
|
||||
v.xbits.expsign = BIAS + k;
|
||||
twopk = v.e;
|
||||
|
Loading…
Reference in New Issue
Block a user