summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asm.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-15 14:06:34 +0000
committerbde <bde@FreeBSD.org>1997-04-15 14:06:34 +0000
commit6d6f4ad833dad39eca2f8818f215ef51801e7aac (patch)
tree49026ae39d916ff61f55f92e7339d05564dde349 /sys/amd64/include/asm.h
parent8c621c574270ce57e5f1a378d4effdb0cbdfa15d (diff)
downloadFreeBSD-src-6d6f4ad833dad39eca2f8818f215ef51801e7aac.zip
FreeBSD-src-6d6f4ad833dad39eca2f8818f215ef51801e7aac.tar.gz
Only do indirections in ENTRY() if _ARCH_INDIRECT is defined.
Diffstat (limited to 'sys/amd64/include/asm.h')
-rw-r--r--sys/amd64/include/asm.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h
index d700579..650181d 100644
--- a/sys/amd64/include/asm.h
+++ b/sys/amd64/include/asm.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)DEFS.h 5.1 (Berkeley) 4/23/90
- * $Id: asm.h,v 1.1 1997/03/09 10:39:15 bde Exp $
+ * $Id: asm.h,v 1.2 1997/03/09 13:57:32 bde Exp $
*/
#include <sys/cdefs.h>
@@ -119,13 +119,14 @@
#endif
+#ifdef _ARCH_INDIRECT
/*
- * This header is currently only used in lib/msun/i387.
- * Use it to generate code to select between the generic math functions
- * and the i387 ones.
+ * Generate code to select between the generic functions and _ARCH_INDIRECT
+ * specific ones.
+ * XXX nested __CONCATs don't work with non-ANSI cpp's.
*/
#undef ENTRY
-#define ANAME(x) CNAME(__CONCAT(__i387_,x))
+#define ANAME(x) CNAME(__CONCAT(__CONCAT(__,_ARCH_INDIRECT),x))
#define ASELNAME(x) CNAME(__CONCAT(__arch_select_,x))
#define AVECNAME(x) CNAME(__CONCAT(__arch_,x))
#define GNAME(x) CNAME(__CONCAT(__generic_,x))
@@ -196,6 +197,8 @@
#endif /* PROF */
+#endif /* _ARCH_INDIRECT */
+
#ifndef RCSID
#define RCSID(a)
#endif
OpenPOWER on IntegriCloud