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/* According to RTABI, QNAN is only with the most significant bit of the
23   significand set, and all other significand bits zero.  */
24#define _FP_NANFRAC_H		_FP_QNANBIT_H
25#define _FP_NANFRAC_S		_FP_QNANBIT_S
26#define _FP_NANFRAC_D		_FP_QNANBIT_D, 0
27#define _FP_NANFRAC_Q		_FP_QNANBIT_Q, 0, 0, 0
28#define _FP_NANSIGN_H		0
29#define _FP_NANSIGN_S		0
30#define _FP_NANSIGN_D		0
31#define _FP_NANSIGN_Q		0
32
33#define _FP_KEEPNANFRACP 1
34#define _FP_QNANNEGATEDP 0
35
36/* Someone please check this.  */
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
53#define _FP_TININESS_AFTER_ROUNDING 0
54
55#define	__LITTLE_ENDIAN	1234
56#define	__BIG_ENDIAN	4321
57
58#if defined __ARMEB__
59# define __BYTE_ORDER __BIG_ENDIAN
60#else
61# define __BYTE_ORDER __LITTLE_ENDIAN
62#endif
63
64
65/* Define ALIASNAME as a strong alias for NAME.  */
66# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
67# define _strong_alias(name, aliasname) \
68  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
69
70#ifdef __ARM_EABI__
71/* Rename functions to their EABI names.  */
72/* The comparison functions need wrappers for EABI semantics, so
73   leave them unmolested.  */
74#define __negsf2	__aeabi_fneg
75#define __subsf3	__aeabi_fsub
76#define __addsf3	__aeabi_fadd
77#define __floatunsisf	__aeabi_ui2f
78#define __floatsisf	__aeabi_i2f
79#define __floatundisf	__aeabi_ul2f
80#define __floatdisf	__aeabi_l2f
81#define __mulsf3	__aeabi_fmul
82#define __divsf3	__aeabi_fdiv
83#define __unordsf2	__aeabi_fcmpun
84#define __fixsfsi	__aeabi_f2iz
85#define __fixunssfsi	__aeabi_f2uiz
86#define __fixsfdi	__aeabi_f2lz
87#define __fixunssfdi	__aeabi_f2ulz
88#define __floatdisf	__aeabi_l2f
89
90#define __negdf2	__aeabi_dneg
91#define __subdf3	__aeabi_dsub
92#define __adddf3	__aeabi_dadd
93#define __floatunsidf	__aeabi_ui2d
94#define __floatsidf	__aeabi_i2d
95#define __extendsfdf2	__aeabi_f2d
96#define __truncdfsf2	__aeabi_d2f
97#define __floatundidf	__aeabi_ul2d
98#define __floatdidf	__aeabi_l2d
99#define __muldf3	__aeabi_dmul
100#define __divdf3	__aeabi_ddiv
101#define __unorddf2	__aeabi_dcmpun
102#define __fixdfsi	__aeabi_d2iz
103#define __fixunsdfsi	__aeabi_d2uiz
104#define __fixdfdi	__aeabi_d2lz
105#define __fixunsdfdi	__aeabi_d2ulz
106#define __floatdidf	__aeabi_l2d
107#define __extendhfsf2	__gnu_h2f_ieee
108#define __truncsfhf2	__gnu_f2h_ieee
109
110#endif /* __ARM_EABI__ */
111