summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtod.c
Commit message (Collapse)AuthorAgeFilesLines
* The gdtoa import apparently hasn't caused anything or anyone todas2003-03-151-2429/+0
| | | | | explode, so nix the old strtod() / dtoa(). This change is part of the gdtoa patches reviewed on standards@.
* Define `Sudden_Underflow' when compiling for the Alpharobert2002-11-141-0/+3
| | | | | | | | | | | | | | | | | | | | | architecture, mainly to avoid getting a SIGFPE signal sent when calling strtod(3) with certain input. The SIGFPE has been sent because the code was not aware that a Gradual Underflow is handled in software via traps on the Alpha architecture, but is not implemented in our Alpha kernel layer. With `Sudden_Underflow' defined, strtod(3) should not depend on Gradual Underflow and adjust its calculations accordingly, which means that other, more subtle errors than the sending of SIGFPE could be solved by this. Discussed with: bde PR: alpha/12623 PR: alpha/17032 PR: alpha/43567 MFC after: 7 days
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-2/+2
|
* - Add the 'restrict' qualifier to the function prototypes androbert2002-08-151-2/+2
| | | | | | | | definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages.
* Use a union to access the words of a double as this is less likelydwmalone2002-08-131-4/+8
| | | | | | | | | | | | to cause bugs when gcc is more aggressively optimising things. There are still problems with dtoa mentioned in the PR - maybe Dan could suggest a patch. PR: 40209 Submitted by: Dan Lukes <dan@obluda.cz> Approved by: bde MFC after: 2 weeks
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-11/+0
| | | | Submitted by: keramida
* Let this code know about PowerPC.benno2002-05-211-1/+1
|
* Fix the style of the SCM ID's.obrien2002-03-221-2/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Add ifdefs for sparc64.jake2002-02-231-1/+2
|
* * cleanup comments and definesphantom2001-12-141-8/+1
| | | | Reviewed by: bde
* Merge NetBSD's changes from netbsd_strtod.c in preparation ofphantom2001-11-301-47/+54
| | | | | | | | | removing it from our source tree in order to have one version of strtod() for all arches. netbsd_strtod.c still left in source tree until alpha folks make sure that our native strtod() works as well as NetBSD's one. Reviewed by: peter, bde (some time ago)
* Back out national digits support, POSIX explicetely disallows it:ache2001-11-291-24/+24
| | | | | | | | | | | The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15.
* Fix typoache2001-11-281-1/+1
|
* Use stricter tests to disallow national digits > 9ache2001-11-281-14/+14
| | | | Optimize national digits code a bit
* Allow national (non-ASCII) digitsache2001-11-281-23/+23
|
* Make strtod.c work on Alpha as well. strtod.c has got locale support,peter2001-11-041-11/+8
| | | | | | the netbsd_strtod.c file we have does not. More still should be done here, but this works happily on my Alpha. I have not (yet?) changed the Makefile.inc to use this.
* Slightly closer to netbsd_strtod.c:peter2001-11-041-11/+12
| | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/
* Make this work on ia64. I have no idea why it works on alpha - itdfr2001-10-061-1/+7
| | | | shouldn't.
* Update unused __dtoa prototypes to match reality.tegge2001-02-251-2/+2
|
* Remove freelists managed by Balloc/Bfree.tegge2001-02-151-31/+11
| | | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070 Reviewed by: deischen
* Use decimap_point from localeconv() instead of hardcoded '.'ache2001-02-101-1/+4
| | | | Obtained from: inspired by NetBSD strtod
* Backout previous commit. Use of spinlocks was not approved.tegge2001-02-091-21/+17
| | | | PR: 15070
* Protect freelists managed by Balloc/Bfree with a spinlock.tegge2001-02-081-17/+23
| | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070
* General -Wall warning cleanup, part I.jkh1996-07-121-31/+31
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Make strtod conforms manpage, use isspace to skip initial whitespacesache1995-08-011-7/+3
| | | | instead of hardcoded whitespaces
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+2447
OpenPOWER on IntegriCloud