summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/strtod.c
Commit message (Collapse)AuthorAgeFilesLines
* The gdtoa import apparently hasn't caused anything or anyone toDavid Schultz2003-03-151-2429/+0
| | | | | | | | explode, so nix the old strtod() / dtoa(). This change is part of the gdtoa patches reviewed on standards@. Notes: svn path=/head/; revision=112257
* Define `Sudden_Underflow' when compiling for the AlphaRobert Drehmel2002-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 Notes: svn path=/head/; revision=106918
* Style: One space between "restrict" qualifier and "*".Tim J. Robbins2002-09-061-2/+2
| | | | Notes: svn path=/head/; revision=103012
* - Add the 'restrict' qualifier to the function prototypes andRobert Drehmel2002-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. Notes: svn path=/head/; revision=101912
* Use a union to access the words of a double as this is less likelyDavid Malone2002-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 Notes: svn path=/head/; revision=101812
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-281-11/+0
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=97407
* Let this code know about PowerPC.Benno Rice2002-05-211-1/+1
| | | | Notes: svn path=/head/; revision=97044
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+2
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Add ifdefs for sparc64.Jake Burkholder2002-02-231-1/+2
| | | | Notes: svn path=/head/; revision=91161
* * cleanup comments and definesAlexey Zelkin2001-12-141-8/+1
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=87872
* Merge NetBSD's changes from netbsd_strtod.c in preparation ofAlexey Zelkin2001-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) Notes: svn path=/head/; revision=87123
* Back out national digits support, POSIX explicetely disallows it:Andrey A. Chernov2001-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. Notes: svn path=/head/; revision=87078
* Fix typoAndrey A. Chernov2001-11-281-1/+1
| | | | Notes: svn path=/head/; revision=87040
* Use stricter tests to disallow national digits > 9Andrey A. Chernov2001-11-281-14/+14
| | | | | | | Optimize national digits code a bit Notes: svn path=/head/; revision=87038
* Allow national (non-ASCII) digitsAndrey A. Chernov2001-11-281-23/+23
| | | | Notes: svn path=/head/; revision=87029
* Make strtod.c work on Alpha as well. strtod.c has got locale support,Peter Wemm2001-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. Notes: svn path=/head/; revision=86043
* Slightly closer to netbsd_strtod.c:Peter Wemm2001-11-041-11/+12
| | | | | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/ Notes: svn path=/head/; revision=86033
* Make this work on ia64. I have no idea why it works on alpha - itDoug Rabson2001-10-061-1/+7
| | | | | | | shouldn't. Notes: svn path=/head/; revision=84591
* Update unused __dtoa prototypes to match reality.Tor Egge2001-02-251-2/+2
| | | | Notes: svn path=/head/; revision=73021
* Remove freelists managed by Balloc/Bfree.Tor Egge2001-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 Notes: svn path=/head/; revision=72523
* Use decimap_point from localeconv() instead of hardcoded '.'Andrey A. Chernov2001-02-101-1/+4
| | | | | | | Obtained from: inspired by NetBSD strtod Notes: svn path=/head/; revision=72287
* Backout previous commit. Use of spinlocks was not approved.Tor Egge2001-02-091-21/+17
| | | | | | | PR: 15070 Notes: svn path=/head/; revision=72254
* Protect freelists managed by Balloc/Bfree with a spinlock.Tor Egge2001-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 Notes: svn path=/head/; revision=72179
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-31/+31
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Make strtod conforms manpage, use isspace to skip initial whitespacesAndrey A. Chernov1995-08-011-7/+3
| | | | | | | instead of hardcoded whitespaces Notes: svn path=/head/; revision=9846
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+2447
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573