arm-gcc.h revision 1.1
1/* $NetBSD: arm-gcc.h,v 1.1 2000/12/29 20:13:54 bjh21 Exp $ */ 2 3/* 4------------------------------------------------------------------------------- 5One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined. 6------------------------------------------------------------------------------- 7*/ 8#define LITTLEENDIAN 9 10/* 11------------------------------------------------------------------------------- 12The macro `BITS64' can be defined to indicate that 64-bit integer types are 13supported by the compiler. 14------------------------------------------------------------------------------- 15*/ 16#define BITS64 17 18/* 19------------------------------------------------------------------------------- 20Each of the following `typedef's defines the most convenient type that holds 21integers of at least as many bits as specified. For example, `uint8' should 22be the most convenient type that can hold unsigned integers of as many as 238 bits. The `flag' type must be able to hold either a 0 or 1. For most 24implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed 25to the same as `int'. 26------------------------------------------------------------------------------- 27*/ 28typedef int flag; 29typedef int uint8; 30typedef int int8; 31typedef int uint16; 32typedef int int16; 33typedef unsigned int uint32; 34typedef signed int int32; 35#ifdef BITS64 36typedef unsigned long long int uint64; 37typedef signed long long int int64; 38#endif 39 40/* 41------------------------------------------------------------------------------- 42Each of the following `typedef's defines a type that holds integers 43of _exactly_ the number of bits specified. For instance, for most 44implementation of C, `bits16' and `sbits16' should be `typedef'ed to 45`unsigned short int' and `signed short int' (or `short int'), respectively. 46------------------------------------------------------------------------------- 47*/ 48typedef unsigned char bits8; 49typedef signed char sbits8; 50typedef unsigned short int bits16; 51typedef signed short int sbits16; 52typedef unsigned int bits32; 53typedef signed int sbits32; 54#ifdef BITS64 55typedef unsigned long long int bits64; 56typedef signed long long int sbits64; 57#endif 58 59#ifdef BITS64 60/* 61------------------------------------------------------------------------------- 62The `LIT64' macro takes as its argument a textual integer literal and 63if necessary ``marks'' the literal as having a 64-bit integer type. 64For example, the GNU C Compiler (`gcc') requires that 64-bit literals be 65appended with the letters `LL' standing for `long long', which is `gcc's 66name for the 64-bit integer type. Some compilers may allow `LIT64' to be 67defined as the identity macro: `#define LIT64( a ) a'. 68------------------------------------------------------------------------------- 69*/ 70#define LIT64( a ) a##LL 71#endif 72 73/* 74------------------------------------------------------------------------------- 75The macro `INLINE' can be used before functions that should be inlined. If 76a compiler does not support explicit inlining, this macro should be defined 77to be `static'. 78------------------------------------------------------------------------------- 79*/ 80#define INLINE static __inline 81 82/* 83------------------------------------------------------------------------------- 84The ARM is odd in that it stores doubles high-order word first. 85------------------------------------------------------------------------------- 86*/ 87#ifdef SOFTFLOAT_FOR_GCC 88#define FLOAT64_DEMANGLE(a) (((a) << 32) | ((a) >> 32)) 89#define FLOAT64_MANGLE(a) FLOAT64_DEMANGLE(a) 90#endif 91