libgcc.h 463 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * include/lib/libgcc.h
  4. */
  5. #ifndef __LIB_LIBGCC_H
  6. #define __LIB_LIBGCC_H
  7. #include <asm/byteorder.h>
  8. typedef int word_type __attribute__ ((mode (__word__)));
  9. #ifdef __BIG_ENDIAN
  10. struct DWstruct {
  11. int high, low;
  12. };
  13. #elif defined(__LITTLE_ENDIAN)
  14. struct DWstruct {
  15. int low, high;
  16. };
  17. #else
  18. #error I feel sick.
  19. #endif
  20. typedef union {
  21. struct DWstruct s;
  22. long long ll;
  23. } DWunion;
  24. #endif /* __ASM_LIBGCC_H */