Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use decimal point from locale. ok millert@ | 2008-10-21 | 1 | -3/+3 | |
| | |||||
* | - replace dtoa w/ David's gdtoa, version 2008-03-15 | 2008-09-07 | 1 | -161/+195 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 | ||||
* | comment fixes | 2008-08-27 | 1 | -7/+7 | |
| | |||||
* | - add F | 2008-08-26 | 1 | -8/+17 | |
| | | | | | | - make inf INF nan NAN comply to standards (eEfFgG) - extend man page bits ok millert@. w/ a man page tweak and ok jmc@ | ||||
* | don't zero-pad special values. ok millert@ | 2008-08-26 | 1 | -1/+3 | |
| | |||||
* | - handle sign of negative zero. use sign dtoa sets | 2008-07-10 | 1 | -11/+6 | |
| | | | | | | - remove 'value < 0' cruft, dtoa already clears sign bit for us discussed with, and tested by phessler@ ok millert@, who noticed to remove now-unused variable, and phessler@ | ||||
* | Fix ssize_t vs. size_t mismatch | 2008-05-16 | 1 | -2/+2 | |
| | |||||
* | C99 says that for each va_copy() there must be a matching va_end(). | 2008-05-16 | 1 | -30/+59 | |
| | | | | | Replace the non-portable hackery in __find_arguments() with a union. From FreeBSD. | ||||
* | Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD. | 2008-05-13 | 1 | -1/+2 | |
| | |||||
* | add missing header for getpagesize | 2008-05-05 | 1 | -1/+2 | |
| | | | | ok espie@ | ||||
* | %hhd was being printed as if %hd was specified | 2007-11-28 | 1 | -11/+16 | |
| | | | | ok millert tedu | ||||
* | Remove and simplify an impossible case (if *p = memchr(cp, 0, prec), | 2007-01-30 | 1 | -9/+7 | |
| | | | | | | | | | | | p - cp cannot be greater than prec). Prevent an integer overflow when printing a string with length greater than INT_MAX. Initial diff from millert@. OK millert@, beck@, and otto@. | ||||
* | Fix potential int overflow for printf(3) when passing in very large | 2007-01-16 | 1 | -13/+50 | |
| | | | | values for the field width. Adapted from a diff by Christian Biere. | ||||
* | try first mmap() allocation at pagesize, no need to re-mmap at every power | 2006-11-26 | 1 | -1/+4 | |
| | | | | of 2 from 16 to pagesize(); ok otto | ||||
* | make __dtoa & strtod() thread-safe useing the same method as newer gdtoa | 2006-10-29 | 1 | -4/+11 | |
| | | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa() | ||||
* | check mmap for failure. the helper functions using it return -1, but | 2006-04-29 | 1 | -36/+43 | |
| | | | | | | | callers do not yet check since printf() for example is not documented to return an error. some formatting cleanups. mostly ok deraadt millert | ||||
* | Use long long and intmax_t instead of quad_t throughout. Adapted in | 2006-01-13 | 1 | -97/+92 | |
| | | | | part from FreeBSD. | ||||
* | Adapt things to use __type_t instead of _BSD_TYPE_T_ | 2006-01-06 | 1 | -2/+2 | |
| | | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable | ||||
* | Missing piece from previous commit | 2005-12-19 | 1 | -1/+2 | |
| | |||||
* | Add %hhd to *printf and *scanf as well as %z to *scanf. This was | 2005-12-19 | 1 | -2/+9 | |
| | | | | | sent out and approved about 6 months ago and has been rotting in my tree ever since. | ||||
* | support %jd from c99, although intmax_t may not be available. | 2005-09-23 | 1 | -1/+4 | |
| | | | | ok deraadt espie kettenis | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | next citrus step. | 2005-06-17 | 1 | -1/+2 | |
| | | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump | ||||
* | Fix rearranging of parameters for quad types. | 2005-06-08 | 1 | -11/+24 | |
| | | | | | | | Use stateful functions for mbtowc. Use the same loop for scanning and for rescanning the format. okay millert@ | ||||
* | Change internals of FILE: reuse the unget buffer field to access an | 2005-04-30 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@... This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change. Actual additions to the structure will come in separate steps, since this change is nasty enough on its own. Tests by otto@ and others, careful reading of code by otto@ and millert@. This is definitely a major bump, and has been checked to not impact a full ports build. | ||||
* | deregister + ansify, no change in object code. ok deraadt@ millert@ | 2004-09-28 | 1 | -40/+23 | |
| | |||||
* | typo fix, from the original diff in PR 3932 | 2004-09-25 | 1 | -2/+2 | |
| | |||||
* | oops | 2004-09-25 | 1 | -2/+2 | |
| | |||||
* | access one too far away; from claus; ok millert | 2004-09-24 | 1 | -3/+3 | |
| | |||||
* | explain why mmap; pointed out by claus, pr 3932 | 2004-09-24 | 1 | -2/+4 | |
| | |||||
* | Add 'z' and 't' modifiers for printing size_t and ptrdiff_t. | 2004-09-18 | 1 | -4/+59 | |
| | | | | ok millert@ deraadt@ | ||||
* | Handle ll's correctly for positional args. Problem spotted by hin@, | 2004-09-16 | 1 | -2/+7 | |
| | | | | ok henning@ millert@ deraadt@ | ||||
* | signed vs unsigned | 2004-09-14 | 1 | -2/+2 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | When positional arguments need more memory for storage (more than 8 args), | 2003-05-16 | 1 | -16/+30 | |
| | | | | | | | use mmap() instead of malloc(). this makes all the functionality in snprintf() and friends signal race safe. it also makes syslog_r() and the entire family of *warn*() and *err*() signal race safe, which was the real goal. ok pjazen millert | ||||
* | Use va_copy() for varargs assignemnt. va_copy() is standard with C99 | 2002-10-24 | 1 | -3/+3 | |
| | | | | and gcc3.2 requires this on powerpc. | ||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | 2002-02-19 | 1 | -6/+1 | |
| | |||||
* | Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree) | 2002-02-17 | 1 | -5/+3 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -4/+4 | |
| | |||||
* | KNF, i need this for what comes next.. | 2001-12-05 | 1 | -47/+46 | |
| | |||||
* | Fix a bug with the %e flag introduced in a -Wall pass. The original | 2001-08-13 | 1 | -2/+2 | |
| | | | | | code was in error but due to C precedence rules it didn't cause a problem. | ||||
* | a first pass at -Wall | 2001-07-09 | 1 | -2/+2 | |
| | |||||
* | knf | 2001-05-31 | 1 | -54/+54 | |
| | |||||
* | Fix an incorrect memset() in __grow_type_table(); dk@homepage.ru | 2001-04-20 | 1 | -3/+4 | |
| | | | | | | While I was there I noticed and fixed a bogus realloc(). We should really check malloc/realloc return values and deal sanely but that will have to be done later. Theo OK'd | ||||
* | do { ... } while (0) instead of just { ... } in macros | 1999-08-22 | 1 | -7/+7 | |
| | |||||
* | realloc repair | 1998-08-14 | 1 | -6/+7 | |
| | |||||
* | #if __STDC__ --> #ifdef __STDC__ | 1997-07-25 | 1 | -2/+2 | |
| | |||||
* | Clean up lint and compile warnings | 1996-12-14 | 1 | -9/+6 | |
| | |||||
* | va_list is *not* void* all over... | 1996-11-13 | 1 | -18/+23 | |
| | |||||
* | Set errno to EBADF when attempting to write to a file pointer opened read-only | 1996-10-27 | 1 | -2/+5 | |
| |