_math_inc.h 451 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Setup some glibc defines so we can just drop in the
  3. * asm files from glibc without any modification.
  4. */
  5. #include <features.h>
  6. #include <bits/wordsize.h>
  7. #define __ASSEMBLY__
  8. #include <asm/traps.h>
  9. #if __WORDSIZE == 32
  10. # define ENTRY_ALIGN 4
  11. #else
  12. # define ENTRY_ALIGN 2
  13. #endif
  14. #define ENTRY(sym) \
  15. .global sym; \
  16. .align ENTRY_ALIGN; \
  17. .type sym,%function; \
  18. sym:
  19. #define LOC(sym) \
  20. .L ## sym
  21. #define END(sym) \
  22. .size sym,.-sym;