- Linus: drop support for old-style Makefiles entirely. Big.
[davej-history.git] / arch / arm / nwfpe / ARM-gcc.h
blobd726aa452f565f38bb0ab3fdfe04ac7f2676d72a
2 /*
3 -------------------------------------------------------------------------------
4 One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined.
5 -------------------------------------------------------------------------------
6 */
7 #define LITTLEENDIAN
9 /*
10 -------------------------------------------------------------------------------
11 The macro `BITS64' can be defined to indicate that 64-bit integer types are
12 supported by the compiler.
13 -------------------------------------------------------------------------------
15 #define BITS64
18 -------------------------------------------------------------------------------
19 Each of the following `typedef's defines the most convenient type that holds
20 integers of at least as many bits as specified. For example, `uint8' should
21 be the most convenient type that can hold unsigned integers of as many as
22 8 bits. The `flag' type must be able to hold either a 0 or 1. For most
23 implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed
24 to the same as `int'.
25 -------------------------------------------------------------------------------
27 typedef char flag;
28 typedef unsigned char uint8;
29 typedef signed char int8;
30 typedef int uint16;
31 typedef int int16;
32 typedef unsigned int uint32;
33 typedef signed int int32;
34 #ifdef BITS64
35 typedef unsigned long long int bits64;
36 typedef signed long long int sbits64;
37 #endif
40 -------------------------------------------------------------------------------
41 Each of the following `typedef's defines a type that holds integers
42 of _exactly_ the number of bits specified. For instance, for most
43 implementation of C, `bits16' and `sbits16' should be `typedef'ed to
44 `unsigned short int' and `signed short int' (or `short int'), respectively.
45 -------------------------------------------------------------------------------
47 typedef unsigned char bits8;
48 typedef signed char sbits8;
49 typedef unsigned short int bits16;
50 typedef signed short int sbits16;
51 typedef unsigned int bits32;
52 typedef signed int sbits32;
53 #ifdef BITS64
54 typedef unsigned long long int uint64;
55 typedef signed long long int int64;
56 #endif
58 #ifdef BITS64
60 -------------------------------------------------------------------------------
61 The `LIT64' macro takes as its argument a textual integer literal and if
62 necessary ``marks'' the literal as having a 64-bit integer type. For
63 example, the Gnu C Compiler (`gcc') requires that 64-bit literals be
64 appended with the letters `LL' standing for `long long', which is `gcc's
65 name for the 64-bit integer type. Some compilers may allow `LIT64' to be
66 defined as the identity macro: `#define LIT64( a ) a'.
67 -------------------------------------------------------------------------------
69 #define LIT64( a ) a##LL
70 #endif
73 -------------------------------------------------------------------------------
74 The macro `INLINE' can be used before functions that should be inlined. If
75 a compiler does not support explicit inlining, this macro should be defined
76 to be `static'.
77 -------------------------------------------------------------------------------
79 #define INLINE extern __inline__
82 /* For use as a GCC soft-float library we need some special function names. */
84 #ifdef __LIBFLOAT__
86 /* Some 32-bit ops can be mapped straight across by just changing the name. */
87 #define float32_add __addsf3
88 #define float32_sub __subsf3
89 #define float32_mul __mulsf3
90 #define float32_div __divsf3
91 #define int32_to_float32 __floatsisf
92 #define float32_to_int32_round_to_zero __fixsfsi
93 #define float32_to_uint32_round_to_zero __fixunssfsi
95 /* These ones go through the glue code. To avoid namespace pollution
96 we rename the internal functions too. */
97 #define float32_eq ___float32_eq
98 #define float32_le ___float32_le
99 #define float32_lt ___float32_lt
101 /* All the 64-bit ops have to go through the glue, so we pull the same
102 trick. */
103 #define float64_add ___float64_add
104 #define float64_sub ___float64_sub
105 #define float64_mul ___float64_mul
106 #define float64_div ___float64_div
107 #define int32_to_float64 ___int32_to_float64
108 #define float64_to_int32_round_to_zero ___float64_to_int32_round_to_zero
109 #define float64_to_uint32_round_to_zero ___float64_to_uint32_round_to_zero
110 #define float64_to_float32 ___float64_to_float32
111 #define float32_to_float64 ___float32_to_float64
112 #define float64_eq ___float64_eq
113 #define float64_le ___float64_le
114 #define float64_lt ___float64_lt
116 #if 0
117 #define float64_add __adddf3
118 #define float64_sub __subdf3
119 #define float64_mul __muldf3
120 #define float64_div __divdf3
121 #define int32_to_float64 __floatsidf
122 #define float64_to_int32_round_to_zero __fixdfsi
123 #define float64_to_uint32_round_to_zero __fixunsdfsi
124 #define float64_to_float32 __truncdfsf2
125 #define float32_to_float64 __extendsfdf2
126 #endif
128 #endif