]> sourceware.org Git - newlib-cygwin.git/commit
newlib/libm/common: Don't re-convert float to bits in modf/modff
authorKeith Packard via Newlib <newlib@sourceware.org>
Thu, 26 Mar 2020 00:18:20 +0000 (17:18 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Mar 2020 11:21:33 +0000 (12:21 +0100)
commit3439f3b0e998fd59f4ed277bb0c05bf24d7dc831
tree7fc36a74f6ae46f8923e2481ff0727fbcb478131
parent61cd34c1bfab626c084fd4289657b8f1ac43a138
newlib/libm/common: Don't re-convert float to bits in modf/modff

These functions shared a pattern of re-converting the argument to bits
when returning +/-0. Skip that as the initial conversion still has the
sign bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libm/common/s_modf.c
newlib/libm/common/sf_modf.c
This page took 0.030404 seconds and 5 git commands to generate.