1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/linkage.h>
9 /* Check if the s1 addr is aligned. */
17 /* If aligned, load word each time. */
20 /* If s1[i] != s2[i], goto 2f. */
23 /* If s1[i] == s2[i], check if s1 or s2 is at the end. */
25 /* If at the end, goto 3f (finish comparing). */
83 /* d[i] != s[i] in word, so we check byte 0. */
110 /* s1[i] != s2[i] in word, so we check byte 3. */
137 # endif /* !__CSKYBE__ */
144 /* Compare when s1 or s2 is not aligned. */