_math_inc.h 486 B

123456789101112131415161718192021222324252627282930
  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. /* Is alignment really needed? */
  10. #if __WORDSIZE == 32
  11. # define ENTRY_ALIGN 4
  12. #else
  13. # define ENTRY_ALIGN 2
  14. #endif
  15. #define ENTRY(sym) \
  16. .global sym; \
  17. .align ENTRY_ALIGN; \
  18. .type sym,%function; \
  19. sym:
  20. #define LOC(sym) \
  21. .L ## sym
  22. #define END(sym) \
  23. .size sym,.-sym;