1 /* strchr (str, ch) -- Return pointer to first occurrence of CH in STR.
3 Copyright (C) 2009-2015 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
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.
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.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
27 punpcklbw %xmm1, %xmm1
29 punpcklwd %xmm1, %xmm1
30 pshufd $0, %xmm1, %xmm1
43 leaq (%rdi,%rax), %rax
46 leaq (%rdi,%rax), %rax
54 movdqu 16(%rdi), %xmm0
60 movdqu 32(%rdi), %xmm0
67 movdqu 48(%rdi), %xmm0
79 /* We use this alignment to force loop be aligned to 8 but not
80 16 bytes. This gives better sheduling on AMD processors. */
88 movdqa 16(%rdi), %xmm2
89 movdqa 32(%rdi), %xmm3
91 movdqa 48(%rdi), %xmm4
96 pminub 16(%rdi), %xmm2
97 pminub 32(%rdi), %xmm3
99 pminub 48(%rdi), %xmm4
131 leaq (%rdi,%rax), %rax
134 leaq (%rdi,%rax), %rax
152 movdqa 16(%rdx), %xmm3
158 movdqa 32(%rdx), %xmm3
165 movdqa 48(%rdx), %xmm3
185 weak_alias (strchr, index)
186 libc_hidden_builtin_def (strchr)