/kernel/liteos_a/lib/libc/musl/src/ |
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/ |
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/ |
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, ~0x8 60 REG_L s5, (s2) [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/ |
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() 66 offset, size, s1, s2, vmx_count); in test_one() 77 char *p, *s1, *s2; in testcase() local 90 s2 = p + 3 * MAP_SIZE - alloc_size; in testcase() 102 char *rand_s2 = s2; in testcase() 128 char *rand_s2 = s2; in testcase() [all …]
|
/kernel/linux/linux-5.10/arch/c6x/lib/ |
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 -1, B1, B1 [all …]
|
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 -1, B1, B1 [all …]
|
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 -1, B1, B1 [all …]
|
D | divremi.S | 14 || call .s2 __c6xabi_divu 21 [B0] addkpc .s2 _divu_ret_1, B3, 1 22 [!B0] addkpc .s2 _divu_ret_2, B3, 1 31 ret .s2 B3
|
D | strasgi_64plus.S | 15 add .s2 -4, b31, b31 18 || mvc .s2 b31, ilc 25 ret .s2 b3
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | prom.h | 23 #define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l)) argument 24 #define of_prop_cmp(s1, s2) strcasecmp((s1), (s2)) argument 25 #define of_node_cmp(s1, s2) strcmp((s1), (s2)) argument
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
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() 171 char *strstr(const char *s1, const char *s2) in strstr() argument 175 l2 = strlen(s2); in strstr() [all …]
|
/kernel/linux/linux-5.10/arch/s390/lib/ |
D | string.c | 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() argument 265 register unsigned long r4 asm("4") = (unsigned long) s2; in clcle() 284 char *strstr(const char *s1, const char *s2) in strstr() argument 288 l2 = __strend(s2) - s2; in strstr() 295 cc = clcle(s1, l2, s2, l2); in strstr() 338 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument 342 ret = clcle(s1, n, s2, n); in memcmp()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | btf_dump_test_case_ordering.c | 15 struct s2 { struct 16 struct s2 *s2; argument 23 struct s2 s2; argument
|
/kernel/linux/linux-5.10/arch/ia64/lib/ |
D | xor.S | 33 .rotr s1[6+1], s2[6+1], d[2] 37 (p[0]) ld8.nta s2[0] = [r17], 8 38 (p[6]) xor d[0] = s1[6], s2[6] 72 .rotr s1[6+1], s2[6+1], s3[6+1], d[2] 76 (p[0]) ld8.nta s2[0] = [r17], 8 77 (p[6]) xor d[0] = s1[6], s2[6] 114 .rotr s1[6+1], s2[6+1], s3[6+1], s4[6+1], d[2] 118 (p[0]) ld8.nta s2[0] = [r17], 8 119 (p[6]) xor d[0] = s1[6], s2[6] 159 .rotr s1[6+1], s2[6+1], s3[6+1], s4[6+1], s5[6+1], d[2] [all …]
|
/kernel/linux/linux-5.10/drivers/soc/bcm/brcmstb/pm/ |
D | s2-mips.S | 26 sw s2, 12(sp) 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, 12(sp)
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | uaccess.h | 193 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 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)\ argument 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) \ argument 288 "12: move."#s2" (%2)+,%3\n" \ [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | zutil.h | 57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 83 unsigned long s2 = (adler >> 16) & 0xffff; in zlib_adler32() local 98 s2 += s1; in zlib_adler32() 101 s2 %= BASE; in zlib_adler32() 103 return (s2 << 16) | s1; in zlib_adler32()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | k3_bandgap.c | 92 unsigned int s2) in vtm_get_best_value() argument 95 int d02 = abs(s0 - s2); in vtm_get_best_value() 96 int d12 = abs(s1 - s2); in vtm_get_best_value() 102 return (s0 + s2) / 2; in vtm_get_best_value() 104 return (s1 + s2) / 2; in vtm_get_best_value() 111 unsigned int dtemp, s0, s1, s2; in k3_bgp_read_temp() local 128 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 130 dtemp = vtm_get_best_value(s0, s1, s2); in k3_bgp_read_temp()
|
/kernel/linux/linux-5.10/lib/ |
D | string.c | 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() 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() 712 if (!*s1 && *s2 == '\n' && !s2[1]) in sysfs_streq() 714 if (*s1 == '\n' && !s1[1] && !*s2) in sysfs_streq() [all …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | sample-parsing.c | 20 if (s1->m != s2->m) { \ 27 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 34 const struct perf_sample *s2, in samples_same() argument 94 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 113 (!s1->user_regs.regs || !s2->user_regs.regs || in samples_same() 114 memcmp(s1->user_regs.regs, s2->user_regs.regs, sz))) { in samples_same() 122 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same() 144 (!s1->intr_regs.regs || !s2->intr_regs.regs || in samples_same() 145 memcmp(s1->intr_regs.regs, s2->intr_regs.regs, sz))) { in samples_same() 159 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
|
/kernel/linux/linux-5.10/net/dccp/ccids/lib/ |
D | packet_history.c | 167 s2 = DCCP_SKB_CB(skb)->dccpd_seq; in __one_after_loss() local 169 if (likely(dccp_delta_seqno(s1, s2) > 0)) { /* S1 < S2 */ in __one_after_loss() 177 if (dccp_loss_free(s0, s2, n2)) { in __one_after_loss() 180 if (dccp_loss_free(s2, s1, n1)) { in __one_after_loss() 204 s2 = tfrc_rx_hist_entry(h, 2)->tfrchrx_seqno, in __two_after_loss() local 207 if (likely(dccp_delta_seqno(s2, s3) > 0)) { /* S2 < S3 */ in __two_after_loss() 234 if (dccp_loss_free(s1, s2, n2)) { in __two_after_loss() 272 s2 = tfrc_rx_hist_entry(h, 2)->tfrchrx_seqno, in __three_after_loss() local 277 if (dccp_loss_free(s1, s2, n2)) { in __three_after_loss() 279 if (dccp_loss_free(s2, s3, n3)) { in __three_after_loss()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
D | unistr.c | 55 const ntfschar *s2, size_t s2_len, const IGNORE_CASE_BOOL ic, in ntfs_are_names_equal() argument 61 return !ntfs_ucsncmp(s1, s2, s1_len); in ntfs_are_names_equal() 62 return !ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size); in ntfs_are_names_equal() 135 int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n) in ntfs_ucsncmp() argument 142 c2 = le16_to_cpu(s2[i]); in ntfs_ucsncmp() 171 int ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n, in ntfs_ucsncasecmp() argument 180 if ((c2 = le16_to_cpu(s2[i])) < upcase_size) in ntfs_ucsncasecmp()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | string.h | 11 extern int strcmp(const char *s1, const char *s2); 12 extern int strncmp(const char *s1, const char *s2, size_t n); 20 extern int memcmp(const void *s1, const void *s2, size_t n);
|
/kernel/linux/linux-5.10/fs/unicode/ |
D | utf8-core.c | 24 const struct qstr *s1, const struct qstr *s2) in utf8_strncmp() argument 33 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncmp() 51 const struct qstr *s1, const struct qstr *s2) in utf8_strncasecmp() argument 60 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncasecmp()
|
D | utf8-selftest.c | 249 const struct qstr s2 = {.name = nfdi_test_data[i].dec, in check_utf8_comparisons() local 252 test_f(!utf8_strncmp(table, &s1, &s2), in check_utf8_comparisons() 253 "%s %s comparison mismatch\n", s1.name, s2.name); in check_utf8_comparisons() 259 const struct qstr s2 = {.name = nfdicf_test_data[i].ncf, in check_utf8_comparisons() local 262 test_f(!utf8_strncasecmp(table, &s1, &s2), in check_utf8_comparisons() 263 "%s %s comparison mismatch\n", s1.name, s2.name); in check_utf8_comparisons()
|