summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtod.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-071-2459/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* must pull in sys/types.h unconditionaly, because it is needed my pthreadsderaadt2006-10-301-2/+2
| | | | includes used a bit later (for instance on the vax)
* make __dtoa & strtod() thread-safe useing the same method as newer gdtoaderaadt2006-10-291-31/+75
| | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa()
* __mips64__ handling too.. sighderaadt2006-10-131-4/+5
|
* sparc64 should be in the #ifdefderaadt2006-10-121-2/+2
|
* use __amd64__ instead, until lint is fixedderaadt2006-10-121-2/+2
|
* reorder #if tests because apparently on amd64 cpp proceeds to blow it'sderaadt2006-10-121-3/+4
| | | | own brains out, and then takes lint down with it. To be investigated...
* Teach'em about cpus in spandexmiod2006-10-101-4/+4
|
* Make a var volatile, which forces a mem write at the right spot, andotto2006-10-011-2/+7
| | | | | | detctecion of underflow where it would otherwise not happen for FPUs that have a larger register size than sizeof double (i386, m68k). ok deraadt@ weingart@ kettenis@
* fix a !foo & bar.thib2006-05-191-2/+2
| | | | ok miod@, tedu@, pedro@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* ansi + de-registerpat2005-03-301-142/+24
| | | | ok otto deraadt
* Correct the arm ifdefs previously inserted, is working correctly now.drahn2004-02-031-3/+3
|
* s/arm32/arm/ with VFP bit to match netbsd.drahn2004-02-011-3/+3
|
* the rest of the libs stuff; from art@ againmickey2004-01-281-2/+3
|
* Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.millert2002-12-021-2/+2
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-3/+2
|
* a first pass at -Wallderaadt2001-07-091-6/+6
|
* #ifdef vax -> #ifdef __vax__bjc2000-04-301-2/+2
|
* define hppa as an ieeemickey1998-08-281-2/+2
|
* Make code ANSI/ISO C conformant. Formerly undefined constructs were usedniklas1998-08-121-103/+119
| | | | | making load/store architectures (like mips&alpha) fail whn compiled with gcc -O2.
* Temporary fix for a GCC aliasing bug/misfeature that hits hereniklas1998-08-111-1/+5
|
* Ok here is the mvme88k userland, minus a few important pieces.rahnds1997-03-251-2/+2
| | | | | | | | | | as, ld change need to be merged. It is known that shared libraries and C++ do not work. If anyone wants to step forward and take over the mvme88k port please do. It was dumped on me when the original developer, Nivas, left his previous job and started a new one. I am trying to get the port in a shape that someone could take over.
* port is powerpc not, ppc.rahnds1997-01-091-2/+2
| | | | Make the defines so.
* Add powerpc support. To bad this needs to be modified for everyrahnds1996-12-211-2/+3
| | | | new architecture.
* sys/types.h will serve us better than machine/endian.h.etheisen1996-11-141-3/+2
|
* Include <machine/types.h> for now.etheisen1996-11-141-1/+2
|
* Fix RCS idstholo1996-08-191-4/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* be very careful in case of signed charsderaadt1996-07-271-4/+4
|
* From NetBSD: merge of 960317niklas1996-03-191-2/+14
|
* initial import of NetBSD treederaadt1995-10-181-0/+2499