summaryrefslogtreecommitdiffstats
path: root/contrib/gdtoa
Commit message (Collapse)AuthorAgeFilesLines
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS ineadler2012-12-061-2/+4
| | | | | | | | | | | | share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-207-30/+57
| | | | | | | | | | | | 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)
* Merge gdtoa-20110304.das2011-03-1231-646/+3183
|\
* | Add required header for isalnum(3) to quench compiler warningsuqs2010-06-021-0/+2
| | | | | | | | | | | | Forgotten in: r174678 Submitted by: Alexander Best alexbestms at wwu.de Approved by: das
* | Import a vendor fix for a list overrun.attilio2009-09-072-7/+13
| | | | | | | | | | | | | | | | | | This has been considered as a security hole on some specialized ml, but currently the secteam@ doesn't consider that way. Reviewed by: emaste, des Sponsored by: Sandvine Incorporated MFC after: 3 days
* | Remove some unused vendor files.das2009-03-0439-16499/+0
| |
* | Vendor import of gdtoa 20081205.das2009-01-2831-147/+1899
|\ \ | |/
| * Flatten vendor/gdtoa/*.das2008-09-0385-24820/+0
| |
* | Make strtof() respect the current rounding mode.das2008-09-031-2/+10
| |
* | Merge gdtoa 20080831. This fixes several bugs, including an infinitedas2008-09-0313-98/+259
| | | | | | | | | | | | loop pointed out by cognet@ that occurs when calling strtod() with a string representing a number between DBL_MAX and 2*DBL_MAX, when the rounding mode is anything other than the default.
* | Bring in the vendor's fix for a bug in strtod() wherebydas2008-06-211-2/+5
| | | | | | | | | | | | | | | | strtod("0xyz", &endp) resulted in endp pointing to "0xyz" instead of "xyz". Reported by: Tony Finch <dot@dotat.at> MFC after: 1 week
* | On platforms where long is 64 bits, make sure gdtoa doesn't use adas2007-12-171-0/+3
| | | | | | | | long when it really wants an int.
* | Fix previous commit: We should only mask the top bit in the STRTOG_NaNBitsdas2007-12-162-1/+14
| | | | | | | | case, not the STRTOG_Normal case.
* | Fix strto{f,d,ld}() so they don't return signaling NaNs. C99das2007-12-164-4/+17
| | | | | | | | | | | | | | 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.
* | Some changes the vendor didn't want:das2007-12-161-4/+29
| | | | | | | | | | | | | | | | - Accept the '0x' prefix so strtod("nan(0x...)", NULL) returns the same thing as gcc's builtin nan("0x...") for such strings. - Don't return uninitialized memory. - Finish processing the string up to the closing ')' (provided it's lexically valid) for compatibility with C99 and *scanf().
* | Merge local diffs.das2007-01-031-25/+27
| |
* | This commit was generated by cvs2svn to compensate for changes in r165743,das2007-01-0364-933/+1207
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of the latest gdtoa sources, which include fixes for minordas2007-01-0365-960/+1235
| | | | | | | | problems relating to NaNs and rounding.
* | Configure gdtoa so that floating-point numbers are correctly roundeddas2005-01-181-0/+1
| | | | | | | | when they are printed in non-default rounding modes.
* | This commit was generated by cvs2svn to compensate for changes in r124703,das2004-01-193-12/+16
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import gdtoa 20040118. This revision addresses some corner cases indas2004-01-193-12/+16
| | | | | | | | denormal and locale handling in strtod().
* | Userland spinlocks bad. Sleep locks good.das2003-06-211-8/+11
| | | | | | | | | | | | Use the latter for gdtoa. Requested by: deischen (far too long ago)
* | Add some missing prototypes to eliminate some warnings. These alreadydas2003-04-091-0/+21
| | | | | | | | | | | | | | appear without leading underscores in gdtoa.h, but this approach avoids removing that file from the vendor branch and unduly rearranging things. Prodded by: nectar
* | Add missing prototype for gdtoa().das2003-04-051-0/+2
| |
* | This commit was generated by cvs2svn to compensate for changes in r112620,das2003-03-256-33/+23
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import new sources. The only material change in this update is todas2003-03-256-33/+23
| | | | | | | | | | | | | | add locale support for hexadecimal floating point conversions. Noticed by: ache Reviewed by: mike (mentor)
* | Enable locale support in strtod() and dtoa().das2003-03-191-0/+1
| | | | | | | | | | Noticed by: ache Reviewed by: mike (mentor)
* | This commit was generated by cvs2svn to compensate for changes in r112415,das2003-03-195-51/+29
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import gdtoa sources dated 20030318, which contain several locale fixes.das2003-03-195-51/+29
| | | | | | | | Reviewed by: mike (mentor)
* | Local patches:das2003-03-121-49/+99
|/ | | | | | | | - include extra system headers and add appropriate #defines - use a spinlock to synchronize parts of gdtoa - protect exported symbols with leading underscores Reviewed by: bde (briefly), mike (mentor), obrien
* Initial import of David Gay's gdtoa library for conversion betweendas2003-03-1283-0/+24573
strings and floating point.
OpenPOWER on IntegriCloud