From ff02d5280bf252e86d325ff4348feaf531ede831 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 8 Nov 2010 03:41:34 -0500 Subject: Use IFUNC on x86-64 memset --- sysdeps/x86_64/multiarch/init-arch.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps/x86_64/multiarch/init-arch.c') diff --git a/sysdeps/x86_64/multiarch/init-arch.c b/sysdeps/x86_64/multiarch/init-arch.c index 786466d5fd..15bc9046e3 100644 --- a/sysdeps/x86_64/multiarch/init-arch.c +++ b/sysdeps/x86_64/multiarch/init-arch.c @@ -59,6 +59,11 @@ __init_cpu_features (void) get_common_indeces (&family, &model); + /* Intel processors prefer SSE instruction for memory/string + routines if they are avaiable. */ + __cpu_features.feature[index_Prefer_SSE_for_memop] + |= bit_Prefer_SSE_for_memop; + unsigned int eax = __cpu_features.cpuid[COMMON_CPUID_INDEX_1].eax; unsigned int extended_family = (eax >> 20) & 0xff; unsigned int extended_model = (eax >> 12) & 0xf0; -- cgit v1.2.3