summaryrefslogtreecommitdiffstats
path: root/lib/libc/gdtoa
AgeCommit message (Collapse)AuthorFilesLines
2020-05-31Fix printing long doubles on architectures with hm and lm bits.mortimer1-11/+13
Issue reported with initial patch by enh@google.com. ok deraadt@
2018-04-27Fix typo in binary-float example in commentguenther1-2/+2
2017-07-27Use stdrup, to avoid clang whining about the length parameters beingderaadt3-13/+4
based upon input being used unsafely (they are safe) ok millert kettenis
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsguenther1-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@
2016-03-09We are done providing support for the vax.deraadt1-3/+1
lots of agreement.
2015-09-14Wrap the remaining __*dtoa() functions so that internal calls go directguenther6-2/+20
2015-09-13Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther5-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.
2015-09-10hide __dtoa_locks as a static in the single use case; ok guentherderaadt4-10/+6
2015-08-26Hide many (194!) symbols that nothing should be using.guenther5-6/+6
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
2014-08-10Only need <stdint.h> and not all of <inttypes.h> hereguenther1-2/+2
2011-07-03Swap bitmask values around so that STRTOG_Neg doesn't get affectedmartynas1-6/+6
by the inexact values.
2011-07-02Rebase on gdtoa-20110428; contains fixes for absurdly long inputsmartynas14-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.
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod1-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@
2009-10-16teach gdtoa & its subroutines that malloc can fail; in which casemartynas42-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
2009-08-07define substitution in some cases might happen after prototypes aremartynas1-37/+37
already pulled; so manually substitute protos ensuring they will always be right; ok millert@
2009-06-11don't use freelist if it overruns; use heap memory instead notmartynas1-2/+6
trying to allocate large blocks from bss memory pool in this case. problem reported by Maksymilian Arciemowicz. ok otto@, millert@
2008-12-12strcpy -> strlcpy; ok mbalmer@ martynas@otto4-8/+14
2008-12-09bugfix update to gdtoa 2008-10-10. ok millert@, tested by manymartynas23-151/+499
2008-10-21build w/ USE_LOCALE. ok millert@martynas1-1/+2
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15martynas51-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