You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

compiler.h 771B

12345678910111213141516171819202122232425
  1. #ifndef _BITS_COMPILER_H
  2. #define _BITS_COMPILER_H
  3. #ifndef ASSEMBLY
  4. /** Declare a function with standard calling conventions */
  5. #define __asmcall __attribute__ (( cdecl, regparm(0) ))
  6. /**
  7. * Declare a function with libgcc implicit linkage
  8. *
  9. * It seems as though gcc expects its implicit arithmetic functions to
  10. * be cdecl, even if -mrtd is specified. This is somewhat
  11. * inconsistent; for example, if -mregparm=3 is used then the implicit
  12. * functions do become regparm(3).
  13. *
  14. * The implicit calls to memcpy() and memset() which gcc can generate
  15. * do not seem to have this inconsistency; -mregparm and -mrtd affect
  16. * them in the same way as any other function.
  17. */
  18. #define __libgcc __attribute__ (( cdecl ))
  19. #endif /* ASSEMBLY */
  20. #endif /* _BITS_COMPILER_H */