diff options
author | das <das@FreeBSD.org> | 2010-12-07 03:29:36 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2010-12-07 03:29:36 +0000 |
commit | a75fb4f20bed1222d48bb5ad12404479aadaad35 (patch) | |
tree | df268489cfc2e2bbad69081c76a33db0b086842e /lib/msun/src | |
parent | 35838fd0b5f2afbb914ec70c567255b68a6f1a89 (diff) | |
download | FreeBSD-src-a75fb4f20bed1222d48bb5ad12404479aadaad35.zip FreeBSD-src-a75fb4f20bed1222d48bb5ad12404479aadaad35.tar.gz |
Another minor nit: Make sure the constant here is a float so the compiler
doesn't promote the entire expression to double.
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/e_log2f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/e_log2f.c b/lib/msun/src/e_log2f.c index 7f1963b..bb308d3 100644 --- a/lib/msun/src/e_log2f.c +++ b/lib/msun/src/e_log2f.c @@ -50,7 +50,7 @@ __ieee754_log2f(float x) SET_FLOAT_WORD(x,hx|(i^0x3f800000)); /* normalize x or x/2 */ k += (i>>23); f = __kernel_logf(x); - x = x - 1; + x = x - (float)1.0; GET_FLOAT_WORD(hx,x); SET_FLOAT_WORD(hi,hx&0xfffff000); lo = x - hi; |