mirror of git://sourceware.org/git/glibc.git
x86: Fix missing __wmemcmp def for disable-multiarch build
commit 8804157ad9
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date: Fri Apr 15 12:27:59 2022 -0500
x86: Optimize memcmp SSE2 in memcmp.S
Only defined wmemcmp and missed __wmemcmp. This commit fixes that by
defining __wmemcmp and setting wmemcmp as a weak alias to __wmemcmp.
Both multiarch and disable-multiarch builds succeed and full xchecks
pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
3e9acce8c5
commit
c72a1a062a
|
@ -16,10 +16,6 @@
|
|||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#if IS_IN (libc)
|
||||
# define MEMCMP __wmemcmp_sse2
|
||||
#else
|
||||
# define MEMCMP wmemcmp
|
||||
#endif
|
||||
#define USE_AS_WMEMCMP 1
|
||||
#include "memcmp-sse2.S"
|
||||
#define MEMCMP __wmemcmp_sse2
|
||||
#include "../memcmp.S"
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#define MEMCMP wmemcmp
|
||||
#define MEMCMP __wmemcmp
|
||||
#define USE_AS_WMEMCMP 1
|
||||
#include "multiarch/memcmp-sse2.S"
|
||||
#include "memcmp.S"
|
||||
|
||||
weak_alias (__wmemcmp, wmemcmp)
|
||||
|
|
Loading…
Reference in New Issue