libgcc.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Definitions for various functions 'borrowed' from gcc-3.4.3 */
  2. #define BITS_PER_UNIT 8
  3. typedef int QItype __attribute__ ((mode (QI)));
  4. typedef unsigned int UQItype __attribute__ ((mode (QI)));
  5. typedef int HItype __attribute__ ((mode (HI)));
  6. typedef unsigned int UHItype __attribute__ ((mode (HI)));
  7. typedef int SItype __attribute__ ((mode (SI)));
  8. typedef unsigned int USItype __attribute__ ((mode (SI)));
  9. typedef int DItype __attribute__ ((mode (DI)));
  10. typedef unsigned int UDItype __attribute__ ((mode (DI)));
  11. typedef float SFtype __attribute__ ((mode (SF)));
  12. typedef float DFtype __attribute__ ((mode (DF)));
  13. typedef int word_type __attribute__ ((mode (__word__)));
  14. #define W_TYPE_SIZE (4 * BITS_PER_UNIT)
  15. #define Wtype SItype
  16. #define UWtype USItype
  17. #define HWtype SItype
  18. #define UHWtype USItype
  19. #define DWtype DItype
  20. #define UDWtype UDItype
  21. #define __NW(a,b) __ ## a ## si ## b
  22. #define __NDW(a,b) __ ## a ## di ## b
  23. struct DWstruct {Wtype high, low;};
  24. typedef union
  25. {
  26. struct DWstruct s;
  27. DWtype ll;
  28. } DWunion;