about summary refs log tree commit diff
path: root/sysdeps/x86/init-arch.h
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-06-22 16:51:19 -0700
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-06-22 19:41:35 -0700
commit703f4341083afa7d71987aa96a35eab81309e634 (patch)
tree9e1c48a7cf7baf41599d03bc852ae88b8a75d263 /sysdeps/x86/init-arch.h
parent464d189b9622932a75302290625de84931656ec0 (diff)
downloadglibc-703f4341083afa7d71987aa96a35eab81309e634.tar.gz
glibc-703f4341083afa7d71987aa96a35eab81309e634.tar.xz
glibc-703f4341083afa7d71987aa96a35eab81309e634.zip
x86: Add defines / utilities for making ISA specific x86 builds
1. Factor out some of the ISA level defines in isa-level.c to
   standalone header isa-level.h

2. Add new headers with ISA level dependent macros for handling
   ifuncs.

Note, this file does not change any code.

Tested with and without multiarch on x86_64 for ISA levels:
{generic, x86-64-v2, x86-64-v3, x86-64-v4}

And m32 with and without multiarch.
Diffstat (limited to 'sysdeps/x86/init-arch.h')
-rw-r--r--sysdeps/x86/init-arch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/x86/init-arch.h b/sysdeps/x86/init-arch.h
index 277c15f116..a2886a2532 100644
--- a/sysdeps/x86/init-arch.h
+++ b/sysdeps/x86/init-arch.h
@@ -19,7 +19,9 @@
 #include <ifunc-init.h>
 #include <isa.h>
 
-#ifndef __x86_64__
+#ifdef __x86_64__
+# include <isa-ifunc-macros.h>
+#else
 /* Due to the reordering and the other nifty extensions in i686, it is
    not really good to use heavily i586 optimized code on an i686.  It's
    better to use i486 code if it isn't an i586.  */