summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sparc/_math_inc.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-26 00:53:46 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-26 00:53:46 +0000
commitbb35aec076a113b3fc8e92ea307f482e02571aae (patch)
treed2e3faf6948d436e3444b84381dc0fd56ef38568 /libc/sysdeps/linux/sparc/_math_inc.h
parent62452e396bf7f941bc61386f13b2bf73f04ff3fa (diff)
downloaduClibc-alpine-bb35aec076a113b3fc8e92ea307f482e02571aae.tar.bz2
uClibc-alpine-bb35aec076a113b3fc8e92ea307f482e02571aae.tar.xz
Sync with trunk.
Diffstat (limited to 'libc/sysdeps/linux/sparc/_math_inc.h')
-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;