From b11c2a4d0b7cf8095b93ae70fc187f0feadae5a1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 26 Aug 2005 00:01:26 +0000 Subject: oops, new math code needs this --- libc/sysdeps/linux/sparc/_math_inc.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libc/sysdeps/linux/sparc/_math_inc.h (limited to 'libc/sysdeps/linux/sparc/_math_inc.h') diff --git a/libc/sysdeps/linux/sparc/_math_inc.h b/libc/sysdeps/linux/sparc/_math_inc.h new file mode 100644 index 000000000..9139c06f0 --- /dev/null +++ b/libc/sysdeps/linux/sparc/_math_inc.h @@ -0,0 +1,28 @@ +/* + * Setup some glibc defines so we can just drop in the + * asm files from glibc without any modification. + */ + +#include +#include + +#define __ASSEMBLY__ +#include + +#if __WORDSIZE == 32 +# define ENTRY_ALIGN 4 +#else +# define ENTRY_ALIGN 2 +#endif + +#define ENTRY(sym) \ + .global sym; \ + .align ENTRY_ALIGN; \ + .type sym,%function; \ + sym: + +#define LOC(sym) \ + .L ## sym + +#define END(sym) \ + .size sym,.-sym; -- cgit v1.2.3