Lines Matching defs:s2
737 dtrace_strncmp(char *s1, char *s2, size_t limit)
742 if (s1 == s2 || limit == 0)
753 if (s2 == NULL)
756 c2 = dtrace_load8((uintptr_t)s2++);
821 const uint8_t *s2 = src;
823 if (s1 <= s2) {
825 *s1++ = dtrace_load8((uintptr_t)s2++);
828 s2 += len;
832 *--s1 = dtrace_load8((uintptr_t)--s2);
850 const uint8_t *s2 = src;
853 *s1++ = c = dtrace_load8((uintptr_t)s2++);
876 * Compare s1 to s2 using safe memory accesses. The s1 data is assumed to be
877 * unsafe memory specified by the DIF program. The s2 data is assumed to be
881 dtrace_bcmp(const void *s1, const void *s2, size_t len)
887 if (s1 == s2)
890 if (s1 == NULL || s2 == NULL)
893 if (s1 != s2 && len != 0) {
895 const uint8_t *ps2 = s2;
3871 uintptr_t s2 = tupregs[1].dttk_value;
3901 if ((d[i++] = dtrace_load8(s2++)) == '\0')