1#define _FP_W_TYPE_SIZE		32
2#define _FP_W_TYPE		unsigned long
3#define _FP_WS_TYPE		signed long
4#define _FP_I_TYPE		long
5
6/* The type of the result of a floating point comparison.  This must
7   match `__libgcc_cmp_return__' in GCC for the target.  */
8typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
9#define CMPtype __gcc_CMPtype
10
11#define _FP_MUL_MEAT_S(R,X,Y)				\
12  _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
13#define _FP_MUL_MEAT_D(R,X,Y)				\
14  _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
15#define _FP_MUL_MEAT_Q(R,X,Y)				\
16  _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
17
18#define _FP_DIV_MEAT_S(R,X,Y)	_FP_DIV_MEAT_1_loop(S,R,X,Y)
19#define _FP_DIV_MEAT_D(R,X,Y)	_FP_DIV_MEAT_2_udiv(D,R,X,Y)
20#define _FP_DIV_MEAT_Q(R,X,Y)	_FP_DIV_MEAT_4_udiv(Q,R,X,Y)
21
22#define _FP_NANFRAC_S		((_FP_QNANBIT_S << 1) - 1)
23#define _FP_NANFRAC_D		((_FP_QNANBIT_D << 1) - 1), -1
24#define _FP_NANFRAC_Q		((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1
25#define _FP_NANSIGN_S		0
26#define _FP_NANSIGN_D		0
27#define _FP_NANSIGN_Q		0
28
29#define _FP_KEEPNANFRACP 1
30#define _FP_QNANNEGATEDP 0
31
32/* Someone please check this.  */
33#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP)			\
34  do {								\
35    if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)		\
36	&& !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs))	\
37      {								\
38	R##_s = Y##_s;						\
39	_FP_FRAC_COPY_##wc(R,Y);				\
40      }								\
41    else							\
42      {								\
43	R##_s = X##_s;						\
44	_FP_FRAC_COPY_##wc(R,X);				\
45      }								\
46    R##_c = FP_CLS_NAN;						\
47  } while (0)
48
49#define _FP_TININESS_AFTER_ROUNDING 0
50
51#define	__LITTLE_ENDIAN	1234
52#define	__BIG_ENDIAN	4321
53
54#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
55# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
56#  error "Both BIG_ENDIAN and LITTLE_ENDIAN defined!"
57# endif
58# define __BYTE_ORDER __BIG_ENDIAN
59#else
60# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
61#  define __BYTE_ORDER __LITTLE_ENDIAN
62# else
63#  error "Cannot determine current byte order"
64# endif
65#endif
66
67
68/* Define ALIASNAME as a strong alias for NAME.  */
69# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
70# define _strong_alias(name, aliasname) \
71  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
72