]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Use generic memrchr in libc (bug 31316)
authorFlorian Weimer <fweimer@redhat.com>
Fri, 16 Feb 2024 06:40:37 +0000 (07:40 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 16 Feb 2024 06:41:04 +0000 (07:41 +0100)
Before this change, we incorrectly used the SSE2 variant in the
implementation, without checking that the system actually supports
SSE2.

Tested-by: Sam James <sam@gentoo.org>
sysdeps/i386/i686/multiarch/memrchr-c.c
sysdeps/i386/i686/multiarch/memrchr-sse2.S

index ef7bbbe792afc78ecc08693de3eb0d3a1f93dc73..20bfdf3af35b66e4f0a29a629c21b66563390428 100644 (file)
@@ -5,3 +5,4 @@ extern void *__memrchr_ia32 (const void *, int, size_t);
 #endif
 
 #include "string/memrchr.c"
+strong_alias (__memrchr_ia32, __GI___memrchr)
index d9dae04171bfedffe1c99f2f3e4cad2ebe69203b..e123f87435b3c6a6395ea0277e882a200b59660c 100644 (file)
@@ -720,5 +720,4 @@ L(ret_null):
        ret
 
 END (__memrchr_sse2)
-strong_alias (__memrchr_sse2, __GI___memrchr)
 #endif