]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/powerpc/powerpc64/power7/strcasecmp.S
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / power7 / strcasecmp.S
index 47e2fefe59c5990091c930cd3c74ad843d3d945d..51f19a6e6507109b891efabecf90309553c9e6b9 100644 (file)
@@ -1,5 +1,5 @@
 /* Optimized strcasecmp implementation for PowerPC64.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011-2019 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
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <bp-sym.h>
-#include <bp-asm.h>
 #include <locale-defines.h>
 
 /* int [r3] strcasecmp (const char *s1 [r3], const char *s2 [r4] )
    or if defined USE_IN_EXTENDED_LOCALE_MODEL:
 
    int [r3] strcasecmp_l (const char *s1 [r3], const char *s2 [r4],
-                          __locale_t loc [r5]) */
+                          locale_t loc [r5]) */
 
 #ifndef STRCMP
 # define __STRCMP __strcasecmp
 # define STRCMP   strcasecmp
 #endif
 
-ENTRY (BP_SYM (__STRCMP))
+#ifndef USE_IN_EXTENDED_LOCALE_MODEL
+ENTRY (__STRCMP)
        CALL_MCOUNT 2
+#else
+ENTRY_TOCLESS (__STRCMP)
+       CALL_MCOUNT 3
+#endif
 
 #define rRTN   r3      /* Return value */
 #define rSTR1  r5      /* 1st string */
 #define rSTR2  r4      /* 2nd string */
 #define rLOCARG        r5      /* 3rd argument: locale_t */
-#define rCHAR1 r6      /* Byte readed from 1st string */
-#define rCHAR2 r7      /* Byte readed from 2nd string */
+#define rCHAR1 r6      /* Byte read from 1st string */
+#define rCHAR2 r7      /* Byte read from 2nd string */
 #define rADDR1 r8      /* Address of tolower(rCHAR1) */
 #define rADDR2 r12     /* Address of tolower(rCHAR2) */
 #define rLWR1  r8      /* Word tolower(rCHAR1) */
@@ -118,7 +121,7 @@ L(done):
        subf    r0, rLWR2, rLWR1
        extsw   rRTN, r0
        blr
-END (BP_SYM (__STRCMP))
+END (__STRCMP)
 
-weak_alias (BP_SYM (__STRCMP), BP_SYM (STRCMP))
+weak_alias (__STRCMP, STRCMP)
 libc_hidden_builtin_def (__STRCMP)