glibc/sysdeps/mips
Joseph Myers 797ba44ba2 Add bits/floatn.h defines for more _FloatN / _FloatNx types.
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.
2017-10-20 21:42:51 +00:00
..
bits Install correct bits/long-double.h for MIPS64 (bug 22322). 2017-10-19 17:32:20 +00:00
fpu
ieee754 Add bits/floatn.h defines for more _FloatN / _FloatNx types. 2017-10-20 21:42:51 +00:00
include/sys
mips32 Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
mips64 Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
nptl Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
sys Fix mcontext_t sigcontext namespace (bug 21457). 2017-08-30 22:02:04 +00:00
__longjmp.c
abort-instr.h
add_n.S
addmul_1.S
atomic-machine.h Remove pre-GCC-4.9 MIPS code. 2017-06-19 23:24:36 +00:00
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
configure
configure.ac
dl-dtprocnum.h
dl-machine-reject-phdr.h
dl-machine.h mips: Don't check _DYNAMIC in elf_machine_load_address 2017-10-03 17:47:51 -07:00
dl-procinfo.c
dl-procinfo.h Remove _dl_platform_string 2017-03-14 17:18:52 +01:00
dl-tls.h
dl-trampoline.c
fpregdef.h
fpu_control.h
gccframe.h
Implies
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
linkmap.h
localplt.data
lshift.S
machine-gmon.h
Makefile Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
math_private.h
math-tests.h Remove pre-GCC-4.9 MIPS code. 2017-06-19 23:24:36 +00:00
memcpy.S
memset.S
memusage.h
mul_1.S
nan-high-order-bit.h
preconfigure
regdef.h
rshift.S
setjmp_aux.c
setjmp.S
sgidefs.h
sotruss-lib.c
stackinfo.h
start.S
strcmp.S
sub_n.S
submul_1.S
tininess.h
tls-macros.h
tst-abi-fp32mod.c
tst-abi-fp64amod.c
tst-abi-fp64mod.c
tst-abi-fpxxmod.c
tst-abi-fpxxomod.c
tst-abi-interlink.c
tst-audit.h
tst-mode-switch-1.c
tst-mode-switch-2.c
tst-mode-switch-3.c