797ba44ba2
The bits/floatn.h header currently only has defines relating to _Float128. This patch adds defines relating to other _FloatN / _FloatNx types. The approach taken is to add defines for all _FloatN / _FloatNx types known to GCC, and to put them in a common bits/floatn-common.h header included at the end of all the individual bits/floatn.h headers. If in future some defines become different for different glibc configurations, they will move out into the separate bits/floatn.h headers. Some defines are expected always to be the same across glibc ports. Corresponding defines are nevertheless put in this header. The intent is that where there are conditionals (in headers or in non-installed files) that can just repeat the same or nearly the same logic for each floating-point type, they should do so, even if in fact the cases for some types could be unconditionally present or absent because the same conditionals are true or false for all glibc configurations. This should make the glibc code with such conditionals easier to read, because the reader can just see that the same conditionals are repeated for each type, rather than seeing different conditionals for different types and needing to reason, at each location with such differences, why those differences are indeed correct there. (Cases involving per-format rather than per-type logic are more likely still to need differences in how they handle different types.) Having such defines and conditionals also helps in incremental preparation for adding _Float32 / _Float64 / _Float32x / _Float64x function aliases. I intend subsequent patches to add such conditionals corresponding to those already present for _Float128, as well as making more architecture-specific function implementations use common macros to define aliases in preparation for adding such _FloatN / _FloatNx aliases. Tested for x86_64. * bits/floatn-common.h: New file. * math/Makefile (headers): Add bits/floatn-common.h. * bits/floatn.h: Include <bits/floatn-common.h>. * sysdeps/ia64/bits/floatn.h: Likewise. * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise. * sysdeps/mips/ieee754/bits/floatn.h: Likewise. * sysdeps/powerpc/bits/floatn.h: Likewise. * sysdeps/x86/bits/floatn.h: Likewise. |
||
---|---|---|
.. | ||
bits | ||
fpu | ||
nptl | ||
_mcount.S | ||
abort-instr.h | ||
atomic-machine.h | ||
backtrace.c | ||
bcopy.S | ||
bzero.S | ||
configure | ||
configure.ac | ||
crti.S | ||
crtn.S | ||
dl-dtprocnum.h | ||
dl-fptr.h | ||
dl-lookupcfg.h | ||
dl-machine.h | ||
dl-sysdep.h | ||
dl-tls.h | ||
dl-trampoline.S | ||
entry.h | ||
float128-abi.h | ||
gccframe.h | ||
hp-timing.h | ||
htonl.S | ||
htons.S | ||
ia64libgcc.S | ||
ieee754.h | ||
Implies | ||
jmpbuf-unwind.h | ||
ldbl2mpn.c | ||
ldsodefs.h | ||
libc-tls.c | ||
linkmap.h | ||
machine-gmon.h | ||
Makeconfig | ||
Makefile | ||
math-tests.h | ||
memccpy.S | ||
memchr.S | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
memset.S | ||
memusage.h | ||
sched_cpucount.c | ||
softpipe.h | ||
sotruss-lib.c | ||
stackguard-macros.h | ||
stackinfo.h | ||
start.S | ||
strchr.S | ||
strcmp.S | ||
strcpy.S | ||
strlen.S | ||
strncmp.S | ||
strncpy.S | ||
sysdep.h | ||
tininess.h | ||
tls-macros.h | ||
tst-audit.h | ||
Versions |