]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Rename STRCASECMP_NONASCII macro to STRCASECMP_L_NONASCII
authorNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 12 Jul 2022 19:28:05 +0000 (12:28 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 13 Jul 2022 21:55:31 +0000 (14:55 -0700)
The previous macro name can be confusing given that both
`__strcasecmp_l_nonascii` and `__strcasecmp_nonascii` are
functions and we use the `_l` version.

sysdeps/x86_64/multiarch/strcmp-avx2.S
sysdeps/x86_64/multiarch/strcmp-evex.S

index 516cde1145929fe4d874499524725cb351473f9b..3ab21e3a586f33513c75c8410de509f5dd04b1f0 100644 (file)
 #   define STRCASECMP  __strncasecmp_avx2
 #   define LOCALE_REG  rcx
 #   define LOCALE_REG_LP       RCX_LP
-#   define STRCASECMP_NONASCII __strncasecmp_l_nonascii
+#   define STRCASECMP_L_NONASCII       __strncasecmp_l_nonascii
 #  else
 #   define STRCASECMP  __strcasecmp_avx2
 #   define LOCALE_REG  rdx
 #   define LOCALE_REG_LP       RDX_LP
-#   define STRCASECMP_NONASCII __strcasecmp_l_nonascii
+#   define STRCASECMP_L_NONASCII       __strcasecmp_l_nonascii
 #  endif
 # endif
 
@@ -215,7 +215,7 @@ STRCMP:
        mov     (%LOCALE_REG), %RAX_LP
 #  endif
        testl   $1, LOCALE_DATA_VALUES + _NL_CTYPE_NONASCII_CASE * SIZEOF_VALUES(%rax)
-       jne     STRCASECMP_NONASCII
+       jne     STRCASECMP_L_NONASCII
        leaq    _nl_C_LC_CTYPE_tolower + 128 * 4(%rip), TOLOWER_BASE
 # endif
 
index e97d51bb264bdda3726f565bcbf744fec8302ad8..afbf13a230b92da71c65635dfe8b5ad3dd18c3fd 100644 (file)
 #   define STRCASECMP  __strncasecmp_evex
 #   define LOCALE_REG  rcx
 #   define LOCALE_REG_LP       RCX_LP
-#   define STRCASECMP_NONASCII __strncasecmp_l_nonascii
+#   define STRCASECMP_L_NONASCII       __strncasecmp_l_nonascii
 #  else
 #   define STRCASECMP  __strcasecmp_evex
 #   define LOCALE_REG  rdx
 #   define LOCALE_REG_LP       RDX_LP
-#   define STRCASECMP_NONASCII __strcasecmp_l_nonascii
+#   define STRCASECMP_L_NONASCII       __strcasecmp_l_nonascii
 #  endif
 # endif
 
@@ -241,7 +241,7 @@ STRCMP:
        mov     (%LOCALE_REG), %RAX_LP
 #  endif
        testl   $1, LOCALE_DATA_VALUES + _NL_CTYPE_NONASCII_CASE * SIZEOF_VALUES(%rax)
-       jne     STRCASECMP_NONASCII
+       jne     STRCASECMP_L_NONASCII
        leaq    _nl_C_LC_CTYPE_tolower + 128 * 4(%rip), TOLOWER_BASE
 # endif