aboutsummaryrefslogtreecommitdiff
path: root/contrib/gdtoa
Commit message (Collapse)AuthorAgeFilesLines
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS inEitan Adler2012-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 Notes: svn path=/head/; revision=243933
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds aDavid Chisnall2011-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) Notes: svn path=/head/; revision=227753
* Merge gdtoa-20110304.David Schultz2011-03-1231-646/+3183
|\ | | | | | | Notes: svn path=/head/; revision=219557
* | Add required header for isalnum(3) to quench compiler warningsUlrich Spörlein2010-06-021-0/+2
| | | | | | | | | | | | | | | | | | Forgotten in: r174678 Submitted by: Alexander Best alexbestms at wwu.de Approved by: das Notes: svn path=/head/; revision=208753
* | Import a vendor fix for a list overrun.Attilio Rao2009-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 Notes: svn path=/head/; revision=196916
* | Remove some unused vendor files.David Schultz2009-03-0439-16499/+0
| | | | | | | | Notes: svn path=/head/; revision=189358
* | Vendor import of gdtoa 20081205.David Schultz2009-01-2831-147/+1899
|\| | | | | | | Notes: svn path=/head/; revision=187808
* | Make strtof() respect the current rounding mode.David Schultz2008-09-031-2/+10
| | | | | | | | Notes: svn path=/head/; revision=182710
* | Merge gdtoa 20080831. This fixes several bugs, including an infiniteDavid Schultz2008-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. Notes: svn path=/head/; revision=182709
| * Flatten vendor/gdtoa/*.David Schultz2008-09-0385-24820/+0
| | | | | | | | Notes: svn path=/vendor/gdtoa/dist/; revision=182700
* | Bring in the vendor's fix for a bug in strtod() wherebyDavid Schultz2008-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 Notes: svn path=/head/; revision=179918
* | On platforms where long is 64 bits, make sure gdtoa doesn't use aDavid Schultz2007-12-171-0/+3
| | | | | | | | | | | | | | long when it really wants an int. Notes: svn path=/head/; revision=174693
* | Fix previous commit: We should only mask the top bit in the STRTOG_NaNBitsDavid Schultz2007-12-162-1/+14
| | | | | | | | | | | | | | case, not the STRTOG_Normal case. Notes: svn path=/head/; revision=174690
* | Fix strto{f,d,ld}() so they don't return signaling NaNs. C99David Schultz2007-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. Notes: svn path=/head/; revision=174679
* | Some changes the vendor didn't want:David Schultz2007-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(). Notes: svn path=/head/; revision=174678
* | Merge local diffs.David Schultz2007-01-031-25/+27
| | | | | | | | Notes: svn path=/head/; revision=165746
* | This commit was generated by cvs2svn to compensate for changes in r165743,David Schultz2007-01-0364-933/+1207
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=165744
| * Import of the latest gdtoa sources, which include fixes for minorvendor/gdtoa/20050923David Schultz2007-01-0365-960/+1235
| | | | | | | | | | | | | | | | problems relating to NaNs and rounding. Notes: svn path=/vendor/gdtoa/dist/; revision=165743 svn path=/vendor/gdtoa/20050923/; revision=165745; tag=vendor/gdtoa/20050923
* | Configure gdtoa so that floating-point numbers are correctly roundedDavid Schultz2005-01-181-0/+1
| | | | | | | | | | | | | | when they are printed in non-default rounding modes. Notes: svn path=/head/; revision=140431
* | This commit was generated by cvs2svn to compensate for changes in r124703,David Schultz2004-01-193-12/+16
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=124704
| * Import gdtoa 20040118. This revision addresses some corner cases invendor/gdtoa/20040118David Schultz2004-01-193-12/+16
| | | | | | | | | | | | | | | | denormal and locale handling in strtod(). Notes: svn path=/vendor/gdtoa/dist/; revision=124703 svn path=/vendor/gdtoa/20040118/; revision=124705; tag=vendor/gdtoa/20040118
* | Userland spinlocks bad. Sleep locks good.David Schultz2003-06-211-8/+11
| | | | | | | | | | | | | | | | | | Use the latter for gdtoa. Requested by: deischen (far too long ago) Notes: svn path=/head/; revision=116652
* | Add some missing prototypes to eliminate some warnings. These alreadyDavid Schultz2003-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 Notes: svn path=/head/; revision=113279
* | Add missing prototype for gdtoa().David Schultz2003-04-051-0/+2
| | | | | | | | Notes: svn path=/head/; revision=113144
* | This commit was generated by cvs2svn to compensate for changes in r112620,David Schultz2003-03-256-33/+23
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=112621
| * Import new sources. The only material change in this update is tovendor/gdtoa/20030324David Schultz2003-03-256-33/+23
| | | | | | | | | | | | | | | | | | | | | | add locale support for hexadecimal floating point conversions. Noticed by: ache Reviewed by: mike (mentor) Notes: svn path=/vendor/gdtoa/dist/; revision=112620 svn path=/vendor/gdtoa/20030324/; revision=112622; tag=vendor/gdtoa/20030324
* | Enable locale support in strtod() and dtoa().David Schultz2003-03-191-0/+1
| | | | | | | | | | | | | | | | Noticed by: ache Reviewed by: mike (mentor) Notes: svn path=/head/; revision=112418
* | This commit was generated by cvs2svn to compensate for changes in r112415,David Schultz2003-03-195-51/+29
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=112416
| * Import gdtoa sources dated 20030318, which contain several locale fixes.vendor/gdtoa/20030318David Schultz2003-03-195-51/+29
| | | | | | | | | | | | | | | | Reviewed by: mike (mentor) Notes: svn path=/vendor/gdtoa/dist/; revision=112415 svn path=/vendor/gdtoa/20030318/; revision=112417; tag=vendor/gdtoa/20030318
* | Local patches:David Schultz2003-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 Notes: svn path=/head/; revision=112161
* Initial import of David Gay's gdtoa library for conversion betweenvendor/gdtoa/20030305David Schultz2003-03-1283-0/+24573
strings and floating point. Notes: svn path=/vendor/gdtoa/dist/; revision=112158 svn path=/vendor/gdtoa/20030305/; revision=112160; tag=vendor/gdtoa/20030305