]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/tilegx/sfp-machine64.h
testsuite, Darwin: Fix darwin-comm-1.c error messages for Darwin <= 10.
[thirdparty/gcc.git] / libgcc / config / tilegx / sfp-machine64.h
CommitLineData
dd552284
WL
1#define _FP_W_TYPE_SIZE 64
2#define _FP_W_TYPE unsigned long
3#define _FP_WS_TYPE signed long
4#define _FP_I_TYPE long
5
6typedef int TItype __attribute__ ((mode (TI)));
7typedef unsigned int UTItype __attribute__ ((mode (TI)));
8
9#define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype))
10
11/* The type of the result of a floating point comparison. This must
12 match `__libgcc_cmp_return__' in GCC for the target. */
13typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
14#define CMPtype __gcc_CMPtype
15
16#define _FP_MUL_MEAT_S(R,X,Y) \
17 _FP_MUL_MEAT_1_imm(_FP_WFRACBITS_S,R,X,Y)
18#define _FP_MUL_MEAT_D(R,X,Y) \
19 _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
20#define _FP_MUL_MEAT_Q(R,X,Y) \
21 _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
22
23#define _FP_DIV_MEAT_S(R,X,Y) _FP_DIV_MEAT_1_imm(S,R,X,Y,_FP_DIV_HELP_imm)
24#define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_1_udiv_norm(D,R,X,Y)
25#define _FP_DIV_MEAT_Q(R,X,Y) _FP_DIV_MEAT_2_udiv(Q,R,X,Y)
26
27#define _FP_NANFRAC_S _FP_QNANBIT_S
28#define _FP_NANFRAC_D _FP_QNANBIT_D
29#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0
30#define _FP_NANSIGN_S 1
31#define _FP_NANSIGN_D 1
32#define _FP_NANSIGN_Q 1
33
34#define _FP_KEEPNANFRACP 1
fa1e55b0 35#define _FP_QNANNEGATEDP 0
dd552284
WL
36
37#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \
38 do { \
39 if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) \
40 && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) \
41 { \
42 R##_s = Y##_s; \
43 _FP_FRAC_COPY_##wc(R,Y); \
44 } \
45 else \
46 { \
47 R##_s = X##_s; \
48 _FP_FRAC_COPY_##wc(R,X); \
49 } \
50 R##_c = FP_CLS_NAN; \
51 } while (0)
52
9acf28f1
JM
53#define _FP_TININESS_AFTER_ROUNDING 0
54
dd552284
WL
55#define __LITTLE_ENDIAN 1234
56#define __BIG_ENDIAN 4321
57
341c653c
WL
58#if defined __BIG_ENDIAN__
59#define __BYTE_ORDER __BIG_ENDIAN
60#else
dd552284 61#define __BYTE_ORDER __LITTLE_ENDIAN
341c653c 62#endif
dd552284
WL
63
64/* Define ALIASNAME as a strong alias for NAME. */
65# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
66# define _strong_alias(name, aliasname) \
67 extern __typeof (name) aliasname __attribute__ ((alias (#name)));
68