Another minor nit: Make sure the constant here is a float so the compiler

doesn't promote the entire expression to double.
This commit is contained in:
David Schultz 2010-12-07 03:29:36 +00:00
parent 63687c8b08
commit f353f24867
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216248

View File

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