]> sourceware.org Git - newlib-cygwin.git/commit
strtold: Fix Infinity value.
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 26 Mar 2016 19:27:18 +0000 (20:27 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 26 Mar 2016 19:27:18 +0000 (20:27 +0100)
commit3e446e9723428ed29c402d1b6ee297e5797b9750
tree45cdb66b8e65721e79efeb492f9921302b97ac6c
parent18b47e05d3a971656ebb2306c205d0a6b36e6b91
strtold: Fix Infinity value.

Infinity returned from strtold is recognized as NaN by GCC builtin
functions.  The reason is that ULtox is missing to set a bit.

* libc/stdlib/strtorx.c (ULtox): Set high bit in second word
to create valid Infinity value.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/libc/stdlib/strtorx.c
This page took 0.032356 seconds and 5 git commands to generate.