diff options
Diffstat (limited to 'sysdeps/ieee754/flt-32/s_logbf.c')
-rw-r--r-- | sysdeps/ieee754/flt-32/s_logbf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/ieee754/flt-32/s_logbf.c b/sysdeps/ieee754/flt-32/s_logbf.c index 025c70d..e2b3aaa 100644 --- a/sysdeps/ieee754/flt-32/s_logbf.c +++ b/sysdeps/ieee754/flt-32/s_logbf.c @@ -31,8 +31,7 @@ __logbf (float x) { /* POSIX specifies that denormal number is treated as though it were normalized. */ - int m = (ix == 0) ? 0 : __builtin_clz (ix); - return -126.0 + (float)(8 - m); + rix -= __builtin_clz (ix) - 9; } return (float) (rix - 127); } |