musl/src
Rich Felker 9743a399bf fix incorrect rounding in printf floating point corner cases
the printf floating point formatting code contains an optimization to
avoid computing digits that will be thrown away by rounding at the
specified (or default) precision. while it was correctly retaining all
places up to the last decimal place to be printed, it was not
retaining enough precision to see the next nonzero decimal place in
all cases. this could cause incorrect rounding down in round-to-even
(default) rounding mode, for example, when printing 0.5+DBL_EPSILON
with "%.0f".

in the fix, LDBL_MANT_DIG/3 is a lazy (non-sharp) upper bound on the
number of zeros between any two nonzero decimal digits.
2014-03-09 03:09:49 -04:00
..
aio support configurable page size on mips, powerpc and microblaze 2013-09-15 02:00:32 +00:00
complex complex: add C11 CMPLX macros and replace cpack with them 2012-11-13 01:31:49 +01:00
conf correct the sysconf value for RTSIG_MAX 2013-09-20 01:49:03 -04:00
crypt add legacy functions setkey() and encrypt() 2014-02-05 11:09:53 -05:00
ctype include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
dirent fix readdir not to set ENOENT when directory is removed while reading 2014-02-25 13:05:38 -05:00
env include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
errno fix strerror on mips: one error code is out of the 8-bit table range 2014-03-05 16:08:56 -05:00
exit include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
fcntl in fcntl, use unsigned long instead of long for variadic argument type 2014-03-07 23:56:48 -05:00
fenv add nofpu subarchs to the sh arch, and properly detect compiler's fpu config 2014-02-27 23:18:42 -05:00
internal rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
ipc fix inadvertent use of struct in place of union for semun 2014-01-08 17:37:05 -05:00
ldso rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
legacy include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
linux x32: fix sysinfo() 2014-03-06 05:35:13 +01:00
locale fix an overflow in wcsxfrm when n==0 2014-01-23 03:24:54 +01:00
malloc include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
math x32 port (diff against vanilla x86_64) 2014-02-23 11:09:16 +01:00
misc fix nftw FTW_MOUNT flag 2014-02-01 14:33:33 -05:00
mman include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mq use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
multibyte include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
network add fallback emulation for accept4 on old kernels 2014-02-21 22:25:26 -05:00
passwd include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
prng fix initstate to make the state buffer usable in setstate 2014-01-21 02:01:35 +01:00
process x32 port (diff against vanilla x86_64) 2014-02-23 11:09:16 +01:00
regex include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
sched add pthread_setaffinity_np and pthread_getaffinity_np functions 2013-08-10 21:41:05 -04:00
search POSIX conformance fix: define struct entry in search.h 2013-10-29 20:25:11 +00:00
select remove __SYSCALL_SSLEN arch macro in favor of using public _NSIG 2013-03-26 23:07:31 -04:00
setjmp add nofpu subarchs to the sh arch, and properly detect compiler's fpu config 2014-02-27 23:18:42 -05:00
signal rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
stat fix failure of fchmod, fstat, fchdir, and fchown to produce EBADF 2013-12-19 14:24:55 -05:00
stdio fix incorrect rounding in printf floating point corner cases 2014-03-09 03:09:49 -04:00
stdlib include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
string include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
temp include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
termios include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
thread rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
time eliminate explicit (long) casts when making syscalls 2014-01-06 22:05:54 -05:00
unistd rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00