aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2010-12-07 03:29:36 +0000
committerDavid Schultz <das@FreeBSD.org>2010-12-07 03:29:36 +0000
commitf353f2486712d71c9be1fc0ee74c8dda2a8236a2 (patch)
treedf268489cfc2e2bbad69081c76a33db0b086842e /lib
parent63687c8b08844945bb5f03bf3dea67d80b5aff21 (diff)
downloadsrc-f353f2486712d71c9be1fc0ee74c8dda2a8236a2.tar.gz
src-f353f2486712d71c9be1fc0ee74c8dda2a8236a2.zip
Another minor nit: Make sure the constant here is a float so the compiler
doesn't promote the entire expression to double.
Notes
Notes: svn path=/head/; revision=216248
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/src/e_log2f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/e_log2f.c b/lib/msun/src/e_log2f.c
index 7f1963b142b4..bb308d3e8a13 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;