arm-gcc.h revision 1.1
11.1Sbjh21/* $NetBSD: arm-gcc.h,v 1.1 2000/12/29 20:13:54 bjh21 Exp $ */ 21.1Sbjh21 31.1Sbjh21/* 41.1Sbjh21------------------------------------------------------------------------------- 51.1Sbjh21One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined. 61.1Sbjh21------------------------------------------------------------------------------- 71.1Sbjh21*/ 81.1Sbjh21#define LITTLEENDIAN 91.1Sbjh21 101.1Sbjh21/* 111.1Sbjh21------------------------------------------------------------------------------- 121.1Sbjh21The macro `BITS64' can be defined to indicate that 64-bit integer types are 131.1Sbjh21supported by the compiler. 141.1Sbjh21------------------------------------------------------------------------------- 151.1Sbjh21*/ 161.1Sbjh21#define BITS64 171.1Sbjh21 181.1Sbjh21/* 191.1Sbjh21------------------------------------------------------------------------------- 201.1Sbjh21Each of the following `typedef's defines the most convenient type that holds 211.1Sbjh21integers of at least as many bits as specified. For example, `uint8' should 221.1Sbjh21be the most convenient type that can hold unsigned integers of as many as 231.1Sbjh218 bits. The `flag' type must be able to hold either a 0 or 1. For most 241.1Sbjh21implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed 251.1Sbjh21to the same as `int'. 261.1Sbjh21------------------------------------------------------------------------------- 271.1Sbjh21*/ 281.1Sbjh21typedef int flag; 291.1Sbjh21typedef int uint8; 301.1Sbjh21typedef int int8; 311.1Sbjh21typedef int uint16; 321.1Sbjh21typedef int int16; 331.1Sbjh21typedef unsigned int uint32; 341.1Sbjh21typedef signed int int32; 351.1Sbjh21#ifdef BITS64 361.1Sbjh21typedef unsigned long long int uint64; 371.1Sbjh21typedef signed long long int int64; 381.1Sbjh21#endif 391.1Sbjh21 401.1Sbjh21/* 411.1Sbjh21------------------------------------------------------------------------------- 421.1Sbjh21Each of the following `typedef's defines a type that holds integers 431.1Sbjh21of _exactly_ the number of bits specified. For instance, for most 441.1Sbjh21implementation of C, `bits16' and `sbits16' should be `typedef'ed to 451.1Sbjh21`unsigned short int' and `signed short int' (or `short int'), respectively. 461.1Sbjh21------------------------------------------------------------------------------- 471.1Sbjh21*/ 481.1Sbjh21typedef unsigned char bits8; 491.1Sbjh21typedef signed char sbits8; 501.1Sbjh21typedef unsigned short int bits16; 511.1Sbjh21typedef signed short int sbits16; 521.1Sbjh21typedef unsigned int bits32; 531.1Sbjh21typedef signed int sbits32; 541.1Sbjh21#ifdef BITS64 551.1Sbjh21typedef unsigned long long int bits64; 561.1Sbjh21typedef signed long long int sbits64; 571.1Sbjh21#endif 581.1Sbjh21 591.1Sbjh21#ifdef BITS64 601.1Sbjh21/* 611.1Sbjh21------------------------------------------------------------------------------- 621.1Sbjh21The `LIT64' macro takes as its argument a textual integer literal and 631.1Sbjh21if necessary ``marks'' the literal as having a 64-bit integer type. 641.1Sbjh21For example, the GNU C Compiler (`gcc') requires that 64-bit literals be 651.1Sbjh21appended with the letters `LL' standing for `long long', which is `gcc's 661.1Sbjh21name for the 64-bit integer type. Some compilers may allow `LIT64' to be 671.1Sbjh21defined as the identity macro: `#define LIT64( a ) a'. 681.1Sbjh21------------------------------------------------------------------------------- 691.1Sbjh21*/ 701.1Sbjh21#define LIT64( a ) a##LL 711.1Sbjh21#endif 721.1Sbjh21 731.1Sbjh21/* 741.1Sbjh21------------------------------------------------------------------------------- 751.1Sbjh21The macro `INLINE' can be used before functions that should be inlined. If 761.1Sbjh21a compiler does not support explicit inlining, this macro should be defined 771.1Sbjh21to be `static'. 781.1Sbjh21------------------------------------------------------------------------------- 791.1Sbjh21*/ 801.1Sbjh21#define INLINE static __inline 811.1Sbjh21 821.1Sbjh21/* 831.1Sbjh21------------------------------------------------------------------------------- 841.1Sbjh21The ARM is odd in that it stores doubles high-order word first. 851.1Sbjh21------------------------------------------------------------------------------- 861.1Sbjh21*/ 871.1Sbjh21#ifdef SOFTFLOAT_FOR_GCC 881.1Sbjh21#define FLOAT64_DEMANGLE(a) (((a) << 32) | ((a) >> 32)) 891.1Sbjh21#define FLOAT64_MANGLE(a) FLOAT64_DEMANGLE(a) 901.1Sbjh21#endif 91