Commit Graph

8 Commits

Author SHA1 Message Date
theraven
0f6ef690b3 Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter.  Also
adds support for per-thread locales.  This work was funded by the FreeBSD
Foundation.

Please test any code you have that uses the C standard locale functions!

Reviewed by:    das (gdtoa changes)
Approved by:    dim (mentor)
2011-11-20 14:45:42 +00:00
das
22b42559b2 Merge gdtoa-20110304. 2011-03-12 07:03:06 +00:00
das
1dd1bae7b6 Vendor import of gdtoa 20081205. 2009-01-28 04:36:34 +00:00
das
65b5df780e Make strtof() respect the current rounding mode. 2008-09-03 07:32:06 +00:00
das
785a4b4a47 Flatten vendor/gdtoa/*. 2008-09-03 05:17:02 +00:00
das
70cdf6a574 Fix strto{f,d,ld}() so they don't return signaling NaNs. C99
says they are never supposed to, and the fact that they did could
cause apps that run with unmasked FP exceptions to SIGFPE after a
scanf() or strtod(). The vendor stated that he will not be fixing
this, citing portability concerns.
2007-12-16 21:14:33 +00:00
das
5bc737f352 Import of the latest gdtoa sources, which include fixes for minor
problems relating to NaNs and rounding.
2007-01-03 04:58:54 +00:00
das
db3a0f1435 Initial import of David Gay's gdtoa library for conversion between
strings and floating point.
2003-03-12 20:18:32 +00:00