]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Since nan() is supposed to work the same as strtod("nan(...)", NULL),
authorDavid Schultz <das@FreeBSD.org>
Tue, 18 Dec 2007 23:46:32 +0000 (23:46 +0000)
committerDavid Schultz <das@FreeBSD.org>
Tue, 18 Dec 2007 23:46:32 +0000 (23:46 +0000)
commit7cd4a832675ea6d396dcb5f7688ac58f4b4645c6
treecc7d3c6c65e458a5e66bc120ecd32455cdc17f95
parentb96ebbf2e8c3e30d5fa55fe74754d11edadb75e8
Since nan() is supposed to work the same as strtod("nan(...)", NULL),
my original implementation made both use the same code. Unfortunately,
this meant libm depended on a vendor header at compile time and previously-
unexposed vendor bits in libc at runtime.

Hence, I just wrote my own version of the relevant vendor routine. As it
turns out, mine has a factor of 8 fewer of lines of code, and is a bit more
readable anyway. The strtod() and *scanf() routines still use vendor code.

Reviewed by: bde
lib/libc/amd64/Symbol.map
lib/libc/i386/Symbol.map
lib/libc/ia64/Symbol.map
lib/libc/sparc64/Symbol.map
lib/msun/ld128/s_nanl.c
lib/msun/ld80/s_nanl.c
lib/msun/src/math_private.h
lib/msun/src/s_nan.c