Micro-optimization: move the unary mius operator to operate

on a literal constant.

Obtained from:	bde
This commit is contained in:
Steve Kargl 2013-06-03 18:57:35 +00:00
parent a3f70b4ed8
commit 35cbca6a7f
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;