glibc/bits
Joseph Myers c0c49d60cf Simplify NAN definitions.
Similar to my patches for HUGE_VAL and INFINITY. this patch eliminates
the bits/nan.h headers.  __builtin_nanf ("") is used to define NAN for
GCC 3.3 and later; the fallback is (0.0f / 0.0f), which is a constant
expression for a quiet NaN of type float, but raises a spurious
"invalid" exception outside static initializers, which seems the best
that can be done purely in standard C.  Again, if anyone actually uses
a compiler with its own incompatible extension for producing a
constant quiet NaN, we can add compiler conditionals.

Tested for x86_64.

	*  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
	include <bits/nan.h>.
	* math/Makefile (headers): Remove bits/nan.h.
	* bits/nan.h: Remove.
	* sysdeps/ieee754/bits/nan.h: Likewise.
	* sysdeps/mips/bits/nan.h: Likewise.
2017-08-31 16:39:25 +00:00
..
types Fix sigval namespace (bug 21944). 2017-08-16 20:33:59 +00:00
byteswap-16.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
byteswap.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
confname.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dirent.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dlfcn.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
elfclass.h
endian.h
environments.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
errno.h Remove __need macros from errno.h (__need_Emath, __need_error_t). 2017-06-14 08:14:34 -04:00
fcntl.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fenv.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fenvinline.h
floatn.h float128: Add public _Float128 declarations to libm. 2017-05-15 10:08:56 -03:00
flt-eval-method.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fp-fast.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fp-logb.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hwcap.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
in.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ioctl-types.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ioctls.h
ipc.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ipctypes.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
iscanonical.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
libc-header-start.h Add support for testing __STDC_WANT_IEC_60559_TYPES_EXT__ 2017-05-09 11:40:28 -03:00
libm-simd-decl-stubs.h float128: Add public _Float128 declarations to libm. 2017-05-15 10:08:56 -03:00
link.h
local_lim.h
long-double.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
math-vector.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mathdef.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mathinline.h
mman-linux.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
netdb.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
posix_opt.h
pthreadtypes.h
resource.h Define struct rusage in sys/wait.h when required (bug 21575). 2017-06-19 11:59:19 +00:00
sched.h Remove __need_schedparam and __cpu_set_t_defined. 2017-06-12 17:11:36 -04:00
select.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setjmp.h
shm.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sigaction.h Fix XPG4.2 bits/sigaction.h namespace (bug 21899). 2017-08-07 23:41:32 +00:00
sigcontext.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sigevent-consts.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
siginfo-consts.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
signum-generic.h Factor out shared definitions from bits/signum.h. 2017-06-20 20:32:50 -04:00
signum.h Factor out shared definitions from bits/signum.h. 2017-06-20 20:32:50 -04:00
sigstack.h Split up bits/sigstack.h. 2017-05-19 20:35:07 +00:00
sigthread.h Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h> 2017-02-28 10:34:15 +01:00
sockaddr.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
socket.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ss_flags.h Split up bits/sigstack.h. 2017-05-19 20:35:07 +00:00
stat.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stdint-intn.h Fix network headers stdint.h namespace (bug 21455). 2017-05-04 20:36:42 +00:00
stdint-uintn.h Fix network headers stdint.h namespace (bug 21455). 2017-05-04 20:36:42 +00:00
stdlib-bsearch.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stropts.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syslog-path.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
termios.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
time.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
typesizes.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
uintn-identity.h Make endian-conversion macros always return correct types (bug 16458). 2017-01-11 15:28:08 +00:00
uio-ext.h Remove __need_IOV_MAX and __need_FOPEN_MAX. 2017-06-14 07:51:30 -04:00
uio_lim.h Remove __need_IOV_MAX and __need_FOPEN_MAX. 2017-06-14 07:51:30 -04:00
ustat.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utmp.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utsname.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
waitstatus.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wchar.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wordsize.h Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
xtitypes.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00