1/*
2 * MD header for contrib/gdtoa
3 *
4 * This file can be generated by compiling and running contrib/gdtoa/qnan.c
5 * on the target architecture after arith.h has been generated.
6 *
7 * $FreeBSD$
8 */
9
10
11#include <machine/endian.h>
12
13#if BYTE_ORDER == BIG_ENDIAN
14/* These values were gained on a running
15 * Octeon in Big Endian order. They were gotten
16 * by running ./qnan after arithchk was ran and
17 * got us the proper values for arith.h.
18 */
19#define f_QNAN 0x7f900000
20#define d_QNAN0 0x7ff80000
21#define d_QNAN1 0x0
22#define ld_QNAN0 0x7ff80000
23#define ld_QNAN1 0x0
24#define ld_QNAN2 0x0
25#define ld_QNAN3 0x0
26#define ldus_QNAN0 0x7ff8
27#define ldus_QNAN1 0x0
28#define ldus_QNAN2 0x0
29#define ldus_QNAN3 0x0
30#define ldus_QNAN4 0x0
31#else
32/* FIX FIX, need to run this on a Little Endian
33 * machine and get the proper values, these here
34 * were stolen fromn i386/gd_qnan.h
35 */
36#define f_QNAN 0x7fc00000
37#define d_QNAN0 0x0
38#define d_QNAN1 0x7ff80000
39#define ld_QNAN0 0x0
40#define ld_QNAN1 0xc0000000
41#define ld_QNAN2 0x7fff
42#define ld_QNAN3 0x0
43#define ldus_QNAN0 0x0
44#define ldus_QNAN1 0x0
45#define ldus_QNAN2 0x0
46#define ldus_QNAN3 0xc000
47#define ldus_QNAN4 0x7fff
48#endif
49