glibc/sysdeps/aarch64
Joseph Myers b2491db6c8 Refactor FP_ILOGB* out of bits/mathdef.h.
Continuing the refactoring of bits/mathdef.h, this patch stops it
defining FP_ILOGB0 and FP_ILOGBNAN, moving the required information to
a new header bits/fp-logb.h.

There are only two possible values of each of those macros permitted
by ISO C.  TS 18661-1 adds corresponding macros for llogb, and their
values are required to correspond to those of the ilogb macros in the
obvious way.  Thus two boolean values - for which the same choices are
correct for most architectures - suffice to determine the value of all
these macros, and by defining macros for those boolean values in
bits/fp-logb.h we can then define the public FP_* macros in math.h and
avoid the present duplication of the associated feature test macro
logic.

This patch duly moves to bits/fp-logb.h defining __FP_LOGB0_IS_MIN and
__FP_LOGBNAN_IS_MIN.  Default definitions of those to 0 are correct
for both architectures, while ia64, m68k and x86 get their own
versions of bits/fp-logb.h to reflect their use of values different
from the defaults.

The patch renders many copies of bits/mathdef.h trivial (needed only
to avoid the default __NO_LONG_DOUBLE_MATH).  I'll revise
<https://sourceware.org/ml/libc-alpha/2016-11/msg00865.html>
accordingly so that it removes all bits/mathdef.h headers except the
default one and the alpha one, and arranges for the header to be
included only by complex.h as the only remaining use at that point
will be for the alpha ABI issues there.

Tested for x86_64 and x86.  Also did compile-only testing with
build-many-glibcs.py (using glibc sources from before the commit that
introduced many build failures with undefined __GI___sigsetjmp).

	* bits/fp-logb.h: New file.
	* sysdeps/ia64/bits/fp-logb.h: Likewise.
	* sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
	* sysdeps/x86/bits/fp-logb.h: Likewise.
	* math/Makefile (headers): Add bits/fp-logb.h.
	* math/math.h: Include <bits/fp-logb.h>.
	[__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
	[__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
	* bits/mathdef.h (FP_ILOGB0): Remove.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
	* sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
	(FP_ILOGBNAN): Likewise.
2016-12-01 02:56:55 +00:00
..
bits Refactor FP_ILOGB* out of bits/mathdef.h. 2016-12-01 02:56:55 +00:00
fpu Add femode_t functions: aarch64. 2016-09-07 16:41:20 +00:00
nptl Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
soft-fp Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Implies
Makefile [AArch64] Fix libc internal asm profiling code 2016-07-11 09:50:41 +01:00
Versions
__longjmp.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
abort-instr.h
atomic-machine.h Remove atomic_compare_and_exchange_bool_rel. 2016-06-24 23:04:40 +03:00
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
configure
configure.ac
crti.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
crtn.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dl-irel.h Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
dl-link.sym
dl-machine.h Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
dl-sysdep.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dl-tls.h elf: Consolidate machine-agnostic DTV definitions in <dl-dtv.h> 2016-06-20 14:31:40 +02:00
dl-tlsdesc.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
dl-tlsdesc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dl-trampoline.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
jmpbuf-unwind.h Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
libc-tls.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
libm-test-ulps Regenerate ULPs for aarch64 2016-11-10 16:52:35 +05:30
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
linkmap.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
machine-gmon.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
math-tests.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mcount.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memchr.S An optimized memchr was missing for AArch64. This version is similar to 2016-11-04 14:37:10 +00:00
memcmp.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
memcpy.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
memmove.S This is an optimized memcpy/memmove for AArch64. Copies are split into 3 main 2016-06-20 17:41:33 +01:00
memset.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
memusage.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
preconfigure
rawmemchr.S Add a simple rawmemchr implementation. Use strlen for rawmemchr(s, '\0') as it 2016-06-20 17:48:20 +01:00
setjmp.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stackinfo.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
start.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
stpcpy.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strchr.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strchrnul.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strcmp.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strcpy.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
string_private.h Add _STRING_INLINE_unaligned and string_private.h 2016-02-18 14:55:29 -02:00
strlen.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strncmp.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strnlen.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
strrchr.S Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
sysdep.h Partial ILP32 support for aarch64. 2016-11-28 09:01:23 -08:00
tls-macros.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tlsdesc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tlsdesc.sym
tst-audit.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00