summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-26 00:01:26 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-26 00:01:26 +0000
commitb11c2a4d0b7cf8095b93ae70fc187f0feadae5a1 (patch)
treebed702b870f77d62baa54edc4e5911b9066d2068
parent46b06e9c1c7d57ae0008b3a282110d8ce4345b5f (diff)
oops, new math code needs this
-rw-r--r--libc/sysdeps/linux/sparc/_math_inc.h28
1 files changed, 28 insertions, 0 deletions
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 <features.h>
+#include <bits/wordsize.h>
+
+#define __ASSEMBLY__
+#include <asm/traps.h>
+
+#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;