diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-07-03 02:48:56 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-03 02:48:56 -0700 |
commit | 06e51c8f3de38761f8855700841bc49cf495c8c0 (patch) | |
tree | d76c6e1456fd6eed177ada6be5c318b111724198 /sysdeps/i386/configure.in | |
parent | 241e68032077f92de17f69ac77161807c232b346 (diff) | |
download | glibc-06e51c8f3de38761f8855700841bc49cf495c8c0.tar.gz glibc-06e51c8f3de38761f8855700841bc49cf495c8c0.tar.xz glibc-06e51c8f3de38761f8855700841bc49cf495c8c0.zip |
Add SSE4.2 support for strcspn, strpbrk, and strspn on x86-64.
Diffstat (limited to 'sysdeps/i386/configure.in')
-rw-r--r-- | sysdeps/i386/configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in index 028e1ae8e1..44f53a57a0 100644 --- a/sysdeps/i386/configure.in +++ b/sysdeps/i386/configure.in @@ -33,3 +33,14 @@ rm -f conftest*])AC_SUBST(libc_cv_cpp_asm_debuginfo) if test $libc_cv_cpp_asm_debuginfo = yes; then AC_DEFINE(HAVE_CPP_ASM_DEBUGINFO) fi + +dnl Check if -msse4 works. +AC_CACHE_CHECK(for SSE4 support, libc_cv_cc_sse4, [dnl +if AC_TRY_COMMAND([${CC-cc} -msse4 -xc /dev/null -S -o /dev/null]); then + libc_cv_cc_sse4=yes +else + libc_cv_cc_sse4=no +fi]) +if test $libc_cv_cc_sse4 = yes; then + AC_DEFINE(HAVE_SSE4_SUPPORT) +fi |