[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/sparc

vapier at uclibc.org vapier at uclibc.org
Fri Aug 26 00:01:26 UTC 2005


Author: vapier
Date: 2005-08-25 18:01:26 -0600 (Thu, 25 Aug 2005)
New Revision: 11251

Log:
oops, new math code needs this

Added:
   trunk/uClibc/libc/sysdeps/linux/sparc/_math_inc.h


Changeset:
Added: trunk/uClibc/libc/sysdeps/linux/sparc/_math_inc.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/_math_inc.h	2005-08-25 23:50:55 UTC (rev 11250)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/_math_inc.h	2005-08-26 00:01:26 UTC (rev 11251)
@@ -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;




More information about the uClibc-cvs mailing list