/kernel/liteos_a/lib/libc/musl/src/ |
H A D | memcmp.c | 41 const unsigned char *s2 = str2; in memcmp() local 45 if (*(const uint64_t *)(s1) != *(const uint64_t *)(s2)) { in memcmp() 49 s2 += SIZE_U64; in memcmp() 58 if (*(const uint32_t *)(s1) != *(const uint32_t *)(s2)) { in memcmp() 62 s2 += SIZE_U32; in memcmp() 69 for (; num && (*s1 == *s2); num--, s1++, s2++) { in memcmp() 71 return num ? *s1 - *s2 : 0; in memcmp()
|
/kernel/liteos_a/testsuites/unittest/net/resolv/ |
H A D | net_resolv_test.cpp | 37 int stricmp(const char *s1, const char *s2) in stricmp() argument 39 for (; *s1 && *s2; s1++, s2++) { in stricmp() 40 if (*s1 == *s2) continue; in stricmp() 41 if ((*s1 ^ *s2) == 0x20 && (*s2 | 0x20) >= 'a' && (*s2 | 0x20) <= 'z') continue; in stricmp() 44 return *s1 - *s2; in stricmp()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | relocate_kernel.S | 24 PTR_L s2, (s0) 31 beqz s2, done 34 and s3, s2, 0x1 36 and s4, s2, ~0x1 /* store destination addr in s4 */ 41 and s3, s2, 0x2 43 and s0, s2, ~0x2 48 and s3, s2, 0x4 53 and s3, s2, 0x8 55 and s2, s2, ~ [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | relocate_kernel.S | 26 PTR_L s2, (s0) 33 beqz s2, done 36 and s3, s2, 0x1 38 and s4, s2, ~0x1 /* store destination addr in s4 */ 43 and s3, s2, 0x2 45 and s0, s2, ~0x2 50 and s3, s2, 0x4 55 and s3, s2, 0x8 57 and s2, s2, ~ [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | upcase.c | 36 int ntfs_cmp_names(const __le16 *s1, size_t l1, const __le16 *s2, size_t l2, in ntfs_cmp_names() argument 46 for (; len; s1++, s2++, len--) { in ntfs_cmp_names() 47 diff1 = le16_to_cpu(*s1) - le16_to_cpu(*s2); in ntfs_cmp_names() 58 for (; len; s1++, s2++, len--) { in ntfs_cmp_names() 60 upcase_unicode_char(upcase, le16_to_cpu(*s2)); in ntfs_cmp_names() 73 const __le16 *s2 = uni2->name; in ntfs_cmp_names_cpu() local 83 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu() 84 diff1 = *s1 - le16_to_cpu(*s2); in ntfs_cmp_names_cpu() 95 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu() 97 upcase_unicode_char(upcase, le16_to_cpu(*s2)); in ntfs_cmp_names_cpu() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/ |
H A D | memcmp.c | 34 int test_memcmp(const void *s1, const void *s2, size_t n); 37 static void test_one(char *s1, char *s2, unsigned long max_offset, in test_one() argument 47 y = memcmp(s1+offset, s2+offset, size); in test_one() 48 x = test_memcmp(s1+offset, s2+offset, size); in test_one() 59 printf("%02x ", s2[i]); in test_one() 65 printf("vmx enter/exit not paired.(offset:%ld size:%ld s1:%p s2:%p vc:%d\n", in test_one() 66 offset, size, s1, s2, vmx_count); in test_one() 77 char *p, *s1, *s2; in testcase() local 88 /* Put s1/s2 at the end of a page */ in testcase() 90 s2 in testcase() [all...] |
/kernel/linux/linux-6.6/arch/s390/lib/ |
H A D | string.c | 203 * @s2: Another string 205 * returns 0 if @s1 and @s2 are equal, 206 * < 0 if @s1 is less than @s2 207 * > 0 if @s1 is greater than @s2 210 int strcmp(const char *s1, const char *s2) in strcmp() argument 216 "0: clst %[s1],%[s2]\n" in strcmp() 220 " ic 0,0(%[s2])\n" in strcmp() 223 : [ret] "+&d" (ret), [s1] "+&a" (s1), [s2] "+&a" (s2) in strcmp() 232 const char *s2, unsigne in clcle() 231 clcle(const char *s1, unsigned long l1, const char *s2, unsigned long l2) clcle() argument 255 strstr(const char *s1, const char *s2) strstr() argument 312 memcmp(const void *s1, const void *s2, size_t n) memcmp() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/stringloops/ |
H A D | memcmp.c | 34 int test_memcmp(const void *s1, const void *s2, size_t n); 37 static void test_one(char *s1, char *s2, unsigned long max_offset, in test_one() argument 47 y = memcmp(s1+offset, s2+offset, size); in test_one() 48 x = test_memcmp(s1+offset, s2+offset, size); in test_one() 59 printf("%02x ", s2[i]); in test_one() 65 printf("vmx enter/exit not paired.(offset:%ld size:%ld s1:%p s2:%p vc:%d\n", in test_one() 66 offset, size, s1, s2, vmx_count); in test_one() 77 char *p, *s1, *s2; in testcase() local 88 /* Put s1/s2 at the end of a page */ in testcase() 90 s2 in testcase() [all...] |
/kernel/linux/linux-5.10/arch/c6x/lib/ |
H A D | divu.S | 39 || [!B1] b .s2 B3 ; RETURN A 42 || shl .s2 B4, B1, B4 48 || shru .s2 B4, 1, B4 53 || [B1] add .s2 -1, B1, B1 55 || [B1] add .s2 -1, B1, B1 61 || [B1] add .s2 -1, B1, B1 63 || [B1] add .s2 -1, B1, B1 66 || [B1] add .s2 -1, B1, B1 68 || [B1] add .s2 -1, B1, B1 70 || [B1] add .s2 [all...] |
H A D | divremu.S | 25 ||[!b1] b .s2 B3 ; RETURN A 30 || shl .s2 B4, B1, B4 36 || shru .s2 B4, 1, B4 41 || [b1] add .s2 -1, B1, B1 43 || [b1] add .s2 -1, B1, B1 49 || [b1] add .s2 -1, B1, B1 51 || [b1] add .s2 -1, B1, B1 54 || [b1] add .s2 -1, B1, B1 56 || [b1] add .s2 -1, B1, B1 58 || [b1] add .s2 [all...] |
H A D | remu.S | 33 || [!B1] b .s2 B3 ; RETURN A 37 || shl .s2 B4, B1, B4 41 shru .s2 B4, 1, B4 46 || [B1] add .s2 -1, B1, B1 49 || [B1] add .s2 -1, B1, B1 52 || [B1] add .s2 -1, B1, B1 54 || [B1] add .s2 -1, B1, B1 56 || [B1] add .s2 -1, B1, B1 58 || [B1] add .s2 -1, B1, B1 60 || [B1] add .s2 [all...] |
/kernel/linux/linux-5.10/arch/s390/lib/ |
H A D | string.c | 215 * @s2: Another string 217 * returns 0 if @s1 and @s2 are equal, 218 * < 0 if @s1 is less than @s2 219 * > 0 if @s1 is greater than @s2 222 int strcmp(const char *s1, const char *s2) in strcmp() argument 234 : "+d" (ret), "+d" (r0), "+a" (s1), "+a" (s2) in strcmp() 261 const char *s2, unsigned long l2) in clcle() 265 register unsigned long r4 asm("4") = (unsigned long) s2; in clcle() 281 * @s2: The string to search for 284 char *strstr(const char *s1, const char *s2) in strstr() argument 260 clcle(const char *s1, unsigned long l1, const char *s2, unsigned long l2) clcle() argument 338 memcmp(const void *s1, const void *s2, size_t n) memcmp() argument [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | prom.h | 23 #define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l)) 24 #define of_prop_cmp(s1, s2) strcasecmp((s1), (s2)) 25 #define of_node_cmp(s1, s2) strcmp((s1), (s2))
|
/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | prom.h | 24 #define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l)) 25 #define of_prop_cmp(s1, s2) strcasecmp((s1), (s2)) 26 #define of_node_cmp(s1, s2) strcmp((s1), (s2))
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | relocate_kernel.S | 39 andi s2, s1, IND_DESTINATION 40 beqz s2, 1f 47 andi s2, s1, IND_INDIRECTION 48 beqz s2, 1f 55 andi s2, s1, IND_DONE 56 beqz s2, 1f 61 andi s2, s1, IND_SOURCE 62 beqz s2, process_entry
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | relocate_kernel.S | 38 andi s2, s1, IND_DESTINATION 39 beqz s2, 1f 46 andi s2, s1, IND_INDIRECTION 47 beqz s2, 1f 54 andi s2, s1, IND_DONE 55 beqz s2, 1f 60 andi s2, s1, IND_SOURCE 61 beqz s2, process_entry
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_ordering.c | 15 struct s2 { struct 16 struct s2 *s2; member 23 struct s2 s2; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_ordering.c | 15 struct s2 { struct 16 struct s2 *s2; member 23 struct s2 s2; member
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | string.c | 32 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() argument 36 : CC_OUT(nz) (diff), "+D" (s1), "+S" (s2), "+c" (len)); in memcmp() 43 int bcmp(const void *s1, const void *s2, size_t len) in bcmp() argument 45 return memcmp(s1, s2, len); in bcmp() 51 const unsigned char *s2 = (const unsigned char *)str2; in strcmp() local 54 while (*s1 || *s2) { in strcmp() 55 delta = *s1 - *s2; in strcmp() 59 s2++; in strcmp() 169 * @s2: The string to search for 171 char *strstr(const char *s1, const char *s2) in strstr() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | string.c | 32 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() argument 36 : CC_OUT(nz) (diff), "+D" (s1), "+S" (s2), "+c" (len)); in memcmp() 43 int bcmp(const void *s1, const void *s2, size_t len) in bcmp() argument 45 return memcmp(s1, s2, len); in bcmp() 51 const unsigned char *s2 = (const unsigned char *)str2; in strcmp() local 54 while (*s1 || *s2) { in strcmp() 55 delta = *s1 - *s2; in strcmp() 59 s2++; in strcmp() 169 * @s2: The string to search for 171 char *strstr(const char *s1, const char *s2) in strstr() argument [all...] |
/kernel/linux/linux-5.10/drivers/soc/bcm/brcmstb/pm/ |
H A D | s2-mips.S | 26 sw s2, 12(sp) 37 * s2: TIMERS base register 46 lw s2, 8(t0) 112 sw t0, TIMER_TIMER1_CTRL(s2) 113 lw t0, TIMER_TIMER1_CTRL(s2) 116 sw t0, TIMER_TIMER1_CTRL(s2) 117 lw t0, TIMER_TIMER1_CTRL(s2) 121 lw t1, TIMER_TIMER1_STAT(s2) 127 1: lw t0, TIMER_TIMER1_STAT(s2) 179 lw s2, 1 [all...] |
/kernel/linux/linux-6.6/drivers/soc/bcm/brcmstb/pm/ |
H A D | s2-mips.S | 26 sw s2, 12(sp) 37 * s2: TIMERS base register 46 lw s2, 8(t0) 112 sw t0, TIMER_TIMER1_CTRL(s2) 113 lw t0, TIMER_TIMER1_CTRL(s2) 116 sw t0, TIMER_TIMER1_CTRL(s2) 117 lw t0, TIMER_TIMER1_CTRL(s2) 121 lw t1, TIMER_TIMER1_STAT(s2) 127 1: lw t0, TIMER_TIMER1_STAT(s2) 179 lw s2, 1 [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | string.c | 40 * @s2: The other string 43 int strncasecmp(const char *s1, const char *s2, size_t len) in strncasecmp() argument 53 c2 = *s2++; in strncasecmp() 69 int strcasecmp(const char *s1, const char *s2) in strcasecmp() argument 75 c2 = tolower(*s2++); in strcasecmp() 696 * @s2: another string 703 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() argument 705 while (*s1 && *s1 == *s2) { in sysfs_streq() 707 s2++; in sysfs_streq() 710 if (*s1 == *s2) in sysfs_streq() 1000 strstr(const char *s1, const char *s2) strstr() argument 1026 strnstr(const char *s1, const char *s2, size_t len) strnstr() argument [all...] |
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
H A D | uaccess.h | 193 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ 197 " .ifnc \""#s2"\",\"\"\n" \ 198 "2: "MOVES"."#s2" (%2)+,%3\n" \ 199 " move."#s2" %3,(%1)+\n" \ 209 " .ifnc \""#s2"\",\"\"\n" \ 220 " .ifnc \""#s2"\",\"\"\n" \ 231 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ 232 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3) 284 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \ 288 "12: move."#s2" ( [all...] |
/kernel/linux/linux-6.6/arch/m68k/include/asm/ |
H A D | uaccess.h | 190 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ 194 " .ifnc \""#s2"\",\"\"\n" \ 195 "2: "MOVES"."#s2" (%2)+,%3\n" \ 196 " move."#s2" %3,(%1)+\n" \ 206 " .ifnc \""#s2"\",\"\"\n" \ 217 " .ifnc \""#s2"\",\"\"\n" \ 228 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ 229 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3) 281 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \ 285 "12: move."#s2" ( [all...] |