xref: /freebsd/lib/libc/powerpc64/gd_qnan.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
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 
8840b91ccSNathan Whitehorn #define f_QNAN 0x7fc00000
9*fd774e06SPiotr Kubaj #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
10*fd774e06SPiotr Kubaj #define d_QNAN0 0x0
11*fd774e06SPiotr Kubaj #define d_QNAN1 0x7ff80000
12*fd774e06SPiotr Kubaj #define ld_QNAN0 0x0
13*fd774e06SPiotr Kubaj #define ld_QNAN1 0x7ff80000
14*fd774e06SPiotr Kubaj #define ld_QNAN2 0x0
15*fd774e06SPiotr Kubaj #define ld_QNAN3 0x0
16*fd774e06SPiotr Kubaj #define ldus_QNAN0 0x0
17*fd774e06SPiotr Kubaj #define ldus_QNAN1 0x0
18*fd774e06SPiotr Kubaj #define ldus_QNAN2 0x0
19*fd774e06SPiotr Kubaj #define ldus_QNAN3 0x7ff8
20*fd774e06SPiotr Kubaj #define ldus_QNAN4 0x0
21*fd774e06SPiotr Kubaj #else
22840b91ccSNathan Whitehorn #define d_QNAN0 0x7ff80000
23840b91ccSNathan Whitehorn #define d_QNAN1 0x0
24840b91ccSNathan Whitehorn #define ld_QNAN0 0x7ff80000
25840b91ccSNathan Whitehorn #define ld_QNAN1 0x0
26840b91ccSNathan Whitehorn #define ld_QNAN2 0x0
27840b91ccSNathan Whitehorn #define ld_QNAN3 0x0
28840b91ccSNathan Whitehorn #define ldus_QNAN0 0x7ff8
29840b91ccSNathan Whitehorn #define ldus_QNAN1 0x0
30840b91ccSNathan Whitehorn #define ldus_QNAN2 0x0
31840b91ccSNathan Whitehorn #define ldus_QNAN3 0x0
32840b91ccSNathan Whitehorn #define ldus_QNAN4 0x0
33*fd774e06SPiotr Kubaj #endif
34