]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/i386/i686/multiarch/strcasecmp.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / i386 / i686 / multiarch / strcasecmp.S
CommitLineData
76e3966e 1/* Entry point for multi-version x86 strcasecmp.
b090e8ea 2 All versions must be listed in ifunc-impl-list.c.
bfff8b1b 3 Copyright (C) 2011-2017 Free Software Foundation, Inc.
76e3966e
UD
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
76e3966e
UD
19
20#include <sysdep.h>
21#include <init-arch.h>
22
76e3966e
UD
23 .text
24ENTRY(__strcasecmp)
25 .type __strcasecmp, @gnu_indirect_function
1aee37a2
L
26 LOAD_GOT_AND_RTLD_GLOBAL_RO
27 LOAD_FUNC_GOT_EAX (__strcasecmp_ia32)
28 HAS_CPU_FEATURE (SSSE3)
76e3966e 29 jz 2f
1aee37a2
L
30 LOAD_FUNC_GOT_EAX (__strcasecmp_ssse3)
31 HAS_CPU_FEATURE (SSE4_2)
76e3966e 32 jz 2f
1aee37a2 33 HAS_ARCH_FEATURE (Slow_SSE4_2)
46ed1038 34 jnz 2f
1aee37a2 35 LOAD_FUNC_GOT_EAX (__strcasecmp_sse4_2)
76e3966e
UD
362: ret
37END(__strcasecmp)
76e3966e
UD
38
39weak_alias (__strcasecmp, strcasecmp)