b2cb7fcd8a
distinction between signalling NaNs and quiet NaNs back into the machine-dependent headers; treat the implementation of __nanf in the same spirit. IEEE 754 leaves the distinction between signalling NaNs and quiet NANs to the implementation, and unlike our headers used to suggest they're not identical in the interpretation of the fraction's MSb; in due course, make those of hppa, mips, sh3, and sh5 reflect reality.
14 lines
392 B
C
14 lines
392 B
C
/* $NetBSD: nanf.c,v 1.3 2005/04/15 22:39:11 kleink Exp $ */
|
|
|
|
#include <sys/cdefs.h>
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
|
__RCSID("$NetBSD: nanf.c,v 1.3 2005/04/15 22:39:11 kleink Exp $");
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
|
#include <math.h>
|
|
#include <machine/endian.h>
|
|
|
|
/* bytes for quiet NaN (IEEE single precision) */
|
|
const union __float_u __nanf =
|
|
{ { 0, 0, 0xc0, 0x7f } };
|