aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/multiarch/ifunc-defines.sym
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-05 11:32:00 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-05 11:32:00 -0700
commit3ab2d57a4d00046f1c472abd128517e93e20e485 (patch)
treeaffbd8f72f21440b6d1572bed93d3f84be62e7b3 /sysdeps/x86_64/multiarch/ifunc-defines.sym
parent443caceb354d06724019625ebde083b5151c3fed (diff)
downloadglibc-3ab2d57a4d00046f1c472abd128517e93e20e485.tar
glibc-3ab2d57a4d00046f1c472abd128517e93e20e485.tar.gz
glibc-3ab2d57a4d00046f1c472abd128517e93e20e485.tar.bz2
glibc-3ab2d57a4d00046f1c472abd128517e93e20e485.zip
Optimize x86-64 strlen for SSE4.2.
The SSE4.2 implementation is used in the DSO only. The patch also adds some infrastructure to be used in similar code later one.
Diffstat (limited to 'sysdeps/x86_64/multiarch/ifunc-defines.sym')
-rw-r--r--sysdeps/x86_64/multiarch/ifunc-defines.sym15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/ifunc-defines.sym b/sysdeps/x86_64/multiarch/ifunc-defines.sym
new file mode 100644
index 0000000000..48d1287246
--- /dev/null
+++ b/sysdeps/x86_64/multiarch/ifunc-defines.sym
@@ -0,0 +1,15 @@
+#include "init-arch.h"
+#include <stddef.h>
+
+--
+
+CPU_FEATURES_SIZE sizeof (struct cpu_features)
+KIND_OFFSET offsetof (struct cpu_features, kind)
+CPUID_OFFSET offsetof (struct cpu_features, cpuid)
+CPUID_SIZE sizeof (struct cpuid_registers)
+CPUID_EAX_OFFSET offsetof (struct cpuid_registers, eax)
+CPUID_EBX_OFFSET offsetof (struct cpuid_registers, ebx)
+CPUID_ECX_OFFSET offsetof (struct cpuid_registers, ecx)
+CPUID_EDX_OFFSET offsetof (struct cpuid_registers, edx)
+
+COMMON_CPUID_INDEX_1