1 /* The assembly function for string compare. C-SKY ABIV2 version.
2 Copyright (C) 2018-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
23 /* Check if the s1 addr is aligned. */
31 /* If aligned, load word each time. */
34 /* If s1[i] != s2[i], goto 2f. */
37 /* If s1[i] == s2[i], check if s1 or s2 is at the end. */
39 /* If at the end, goto 3f (finish comparing). */
96 /* s1[i] != s2[i] in word, so we check byte 3. */
129 /* Compare when s1 or s2 is not aligned. */
155 libc_hidden_def (strcmp)