diff options
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power8/strncmp.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/power8/strncmp.S | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/powerpc/powerpc64/power8/strncmp.S b/sysdeps/powerpc/powerpc64/power8/strncmp.S index 1ce9e3fc65..2eefa4a2ba 100644 --- a/sysdeps/powerpc/powerpc64/power8/strncmp.S +++ b/sysdeps/powerpc/powerpc64/power8/strncmp.S @@ -1,5 +1,5 @@ /* Optimized strncmp implementation for PowerPC64/POWER8. - Copyright (C) 2015-2016 Free Software Foundation, Inc. + Copyright (C) 2015-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,6 +18,10 @@ #include <sysdep.h> +#ifndef STRNCMP +# define STRNCMP strncmp +#endif + /* Implements the function int [r3] strncmp (const char *s1 [r3], const char *s2 [r4], size_t [r5] n) @@ -28,7 +32,7 @@ 4k. */ .machine power7 -EALIGN (strncmp, 4, 0) +ENTRY_TOCLESS (STRNCMP, 4) /* Check if size is 0. */ mr. r10,r5 beq cr0,L(ret0) @@ -319,5 +323,5 @@ L(byte_ne_4): extsw r10,r9 mr r9,r8 b L(size_reached_1) -END(strncmp) +END(STRNCMP) libc_hidden_builtin_def(strncmp) |