浏览代码

oops, new math code needs this

Mike Frysinger 20 年之前
父节点
当前提交
b11c2a4d0b
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      libc/sysdeps/linux/sparc/_math_inc.h

+ 28 - 0
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;