mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
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:
parent
63687c8b08
commit
f353f24867
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue