_math_inc.h 514 B

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