NetBSD/lib/libc/arch/sh3/gen/nanf.c

19 lines
495 B
C

/* $NetBSD: nanf.c,v 1.1 2000/01/17 16:27:53 kleink Exp $ */
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: nanf.c,v 1.1 2000/01/17 16:27:53 kleink Exp $");
#endif /* LIBC_SCCS and not lint */
/* nanf.c */
#include <math.h>
#include <machine/endian.h>
/* bytes for quiet NaN on a SH3 (IEEE single precision) */
#if BYTE_ORDER == LITTLE_ENDIAN
const char __nanf[] = { 0, 0, (char)0xc0, 0x7f };
#else
const char __nanf[] = { 0x7f, (char)0xc0, 0, 0 };
#endif