Go to file
Joseph Myers 457622c2fa Fix strtod subnormal rounding (bug 30220)
As reported in bug 30220, the implementation of strtod-family
functions has a bug in the following case: the input string would,
with infinite exponent range, take one more bit to represent than is
available in the normal precision of the return type; the value
represented is in the subnormal range; and there are no nonzero bits
in the value, below those that can be represented in subnormal
precision, other than the least significant bit and possibly the
0.5ulp bit.  In this case, round_and_return ends up discarding the
least significant bit.

Fix by saving that bit to merge into more_bits (it can't be merged in
at the time it's computed, because more_bits mustn't include this bit
in the case of after-rounding tininess detection checking if the
result is still subnormal when rounded to normal precision, so merging
this bit into more_bits needs to take place after that check).

Tested for x86_64.
2024-08-27 12:41:02 +00:00
advisories
argp
assert
benchtests benchtests: Add random memset benchmark 2024-08-07 14:58:46 +01:00
bits
catgets
ChangeLog.old
conform
csu
ctype
debug
dirent
dlfcn
elf nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
gmon
gnulib
hesiod
htl
hurd
iconv
iconvdata
include Define __libc_initial for the static libc 2024-08-09 16:17:14 +02:00
inet inet: Avoid label at end of compound statement in tst-if_nameindex 2024-08-26 16:45:31 +02:00
intl
io Test mkdirat use of mode argument 2024-08-22 11:25:14 +00:00
libio ungetc: Fix backup buffer leak on program exit [BZ #27821] 2024-08-15 13:56:13 -04:00
locale support: Use macros for *stat wrappers 2024-08-16 16:05:20 +02:00
localedata support: Use macros for *stat wrappers 2024-08-16 16:05:20 +02:00
login login: Re-flow and sort multiline Makefile definitions 2024-08-07 11:02:03 -03:00
mach
malloc malloc: Link threading tests with $(shared-thread-library) 2024-08-20 16:16:25 +02:00
manual manual: Add Descriptor-Relative Access section 2024-08-27 10:16:10 +02:00
math added inputs giving large errors on x86_64 for new C23 functions 2024-08-07 14:28:46 +02:00
mathvec
misc
nis
nptl nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
nptl_db
nscd
nss nss: Fix incorrect switch fall-through in tst-nss-gai-actions 2024-08-07 15:00:25 +02:00
po
posix support: Use macros for *stat wrappers 2024-08-16 16:05:20 +02:00
resolv
resource
rt
scripts
setjmp
signal
socket
soft-fp
stdio-common Add more tests of getline 2024-08-21 19:58:14 +00:00
stdlib Fix strtod subnormal rounding (bug 30220) 2024-08-27 12:41:02 +00:00
string string: strerror, strsignal cannot use buffer after dlmopen (bug 32026) 2024-08-19 15:48:03 +02:00
sunrpc
support support: Report errno constants in TEST_COMPARE failures 2024-08-26 16:46:45 +02:00
sysdeps x86: Enable non-temporal memset for Hygon processors 2024-08-26 10:01:58 -07:00
sysvipc
termios
time
timezone
wcsmbs
wctype
.clang-format
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure Turn on -Wimplicit-fallthrough by default if available 2024-08-09 15:34:53 +02:00
configure.ac Turn on -Wimplicit-fallthrough by default if available 2024-08-09 15:34:53 +02:00
CONTRIBUTED-BY
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Turn on -Wimplicit-fallthrough by default if available 2024-08-09 15:34:53 +02:00
Makefile
Makefile.help
Makefile.in
Makerules
NEWS
o-iterator.mk
README
Rules Rules: Also build memcheck tests even when not running them 2024-08-20 16:23:03 +02:00
SECURITY.md
SHARED-FILES
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.