summaryrefslogtreecommitdiffstats
path: root/lib/libc/gdtoa (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix printing long doubles on architectures with hm and lm bits.mortimer2020-05-311-11/+13
| | | | | | Issue reported with initial patch by enh@google.com. ok deraadt@
* Fix typo in binary-float example in commentguenther2018-04-271-2/+2
|
* Use stdrup, to avoid clang whining about the length parameters beingderaadt2017-07-273-13/+4
| | | | | based upon input being used unsafely (they are safe) ok millert kettenis
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-2/+2
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* We are done providing support for the vax.deraadt2016-03-091-3/+1
| | | | lots of agreement.
* Wrap the remaining __*dtoa() functions so that internal calls go directguenther2015-09-146-2/+20
|
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-135-5/+8
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* hide __dtoa_locks as a static in the single use case; ok guentherderaadt2015-09-104-10/+6
|
* Hide many (194!) symbols that nothing should be using.guenther2015-08-265-6/+6
| | | | | | | Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
* Only need <stdint.h> and not all of <inttypes.h> hereguenther2014-08-101-2/+2
|
* Swap bitmask values around so that STRTOG_Neg doesn't get affectedmartynas2011-07-031-6/+6
| | | | by the inexact values.
* Rebase on gdtoa-20110428; contains fixes for absurdly long inputsmartynas2011-07-0214-612/+696
| | | | | | | | | (among other things). Fixes mozilla crasher for the link i was provided with. With the massive local changes to teach that malloc can fail, fixes for the vax, strlcpy, moving things to library namespaces. Tested on all architectures.
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-4/+4
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* teach gdtoa & its subroutines that malloc can fail; in which casemartynas2009-10-1642-2986/+381
| | | | | | ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
* define substitution in some cases might happen after prototypes aremartynas2009-08-071-39/+39
| | | | | already pulled; so manually substitute protos ensuring they will always be right; ok millert@
* don't use freelist if it overruns; use heap memory instead notmartynas2009-06-111-2/+6
| | | | | trying to allocate large blocks from bss memory pool in this case. problem reported by Maksymilian Arciemowicz. ok otto@, millert@
* strcpy -> strlcpy; ok mbalmer@ martynas@otto2008-12-124-8/+14
|
* bugfix update to gdtoa 2008-10-10. ok millert@, tested by manymartynas2008-12-0923-152/+500
|
* build w/ USE_LOCALE. ok millert@martynas2008-10-211-1/+2
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-0751-0/+10023
- 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