diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-05-26 20:24:08 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-05-26 20:24:08 +0000 |
commit | 47023889431f41fa4e408ba468096b7040caaa11 (patch) | |
tree | 11d6fc1c1eb971e3177650edbe3c7f3d1d6361c9 /libc/sysdeps/ieee754/flt-32/s_logbf.c | |
parent | a2c69819561df393e300481562d300f12ee5bc69 (diff) |
Merge changes between r18730 and r18761 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@18762 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/sysdeps/ieee754/flt-32/s_logbf.c')
-rw-r--r-- | libc/sysdeps/ieee754/flt-32/s_logbf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/sysdeps/ieee754/flt-32/s_logbf.c b/libc/sysdeps/ieee754/flt-32/s_logbf.c index 025c70de7..e2b3aaa62 100644 --- a/libc/sysdeps/ieee754/flt-32/s_logbf.c +++ b/libc/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); } |