NetBSD/lib/libc/gen/nanf_ieee754.c

18 lines
484 B
C

/* $NetBSD: nanf_ieee754.c,v 1.2 2003/10/22 23:50:47 kleink Exp $ */
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: nanf_ieee754.c,v 1.2 2003/10/22 23:50:47 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 =
#if BYTE_ORDER == BIG_ENDIAN
{ { 0x7f, 0xc0, 0, 0 } };
#else
{ { 0, 0, 0xc0, 0x7f } };
#endif