xref: /freebsd/lib/libc/powerpc64/gd_qnan.h (revision fd774e065c5d4df1f708a33139bf820ac8bfb7a7)
1840b91ccSNathan Whitehorn /*
2840b91ccSNathan Whitehorn  * MD header for contrib/gdtoa
3840b91ccSNathan Whitehorn  *
4840b91ccSNathan Whitehorn  * This file can be generated by compiling and running contrib/gdtoa/qnan.c
5840b91ccSNathan Whitehorn  * on the target architecture after arith.h has been generated.
6840b91ccSNathan Whitehorn  *
7840b91ccSNathan Whitehorn  * $FreeBSD$
8840b91ccSNathan Whitehorn  */
9840b91ccSNathan Whitehorn 
10840b91ccSNathan Whitehorn #define f_QNAN 0x7fc00000
11*fd774e06SPiotr Kubaj #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
12*fd774e06SPiotr Kubaj #define d_QNAN0 0x0
13*fd774e06SPiotr Kubaj #define d_QNAN1 0x7ff80000
14*fd774e06SPiotr Kubaj #define ld_QNAN0 0x0
15*fd774e06SPiotr Kubaj #define ld_QNAN1 0x7ff80000
16*fd774e06SPiotr Kubaj #define ld_QNAN2 0x0
17*fd774e06SPiotr Kubaj #define ld_QNAN3 0x0
18*fd774e06SPiotr Kubaj #define ldus_QNAN0 0x0
19*fd774e06SPiotr Kubaj #define ldus_QNAN1 0x0
20*fd774e06SPiotr Kubaj #define ldus_QNAN2 0x0
21*fd774e06SPiotr Kubaj #define ldus_QNAN3 0x7ff8
22*fd774e06SPiotr Kubaj #define ldus_QNAN4 0x0
23*fd774e06SPiotr Kubaj #else
24840b91ccSNathan Whitehorn #define d_QNAN0 0x7ff80000
25840b91ccSNathan Whitehorn #define d_QNAN1 0x0
26840b91ccSNathan Whitehorn #define ld_QNAN0 0x7ff80000
27840b91ccSNathan Whitehorn #define ld_QNAN1 0x0
28840b91ccSNathan Whitehorn #define ld_QNAN2 0x0
29840b91ccSNathan Whitehorn #define ld_QNAN3 0x0
30840b91ccSNathan Whitehorn #define ldus_QNAN0 0x7ff8
31840b91ccSNathan Whitehorn #define ldus_QNAN1 0x0
32840b91ccSNathan Whitehorn #define ldus_QNAN2 0x0
33840b91ccSNathan Whitehorn #define ldus_QNAN3 0x0
34840b91ccSNathan Whitehorn #define ldus_QNAN4 0x0
35*fd774e06SPiotr Kubaj #endif
36