mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
The default, and power7 implementation just adds word aligned access when inputs have the same aligment. The unaligned case is still done by byte operations. This is already covered by the generic implementation, which also add the unaligned input optimization. Checked on powerpc64-linux-gnu built without multi-arch for powerpc64, power7, power8, and power9 (build for le). Reviewed-by: Rajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
8 lines
238 B
C
8 lines
238 B
C
#if defined SHARED && IS_IN (libc)
|
|
# define STRNCMP __strncmp_ppc
|
|
# undef libc_hidden_builtin_def
|
|
# define libc_hidden_builtin_def(name) \
|
|
__hidden_ver1 (__strncmp_ppc, __GI_strncmp, __strncmp_ppc);
|
|
#endif
|
|
#include <string/strncmp.c>
|