Lines Matching refs:s2
128 subcc %i0, %i1, %i2 ! s1 == s2 ?
156 ldub [%i1], %g1 ! s2[1]
163 cmp %l1, ('Z' - 'A') ! s2[1] uppercase?
165 add %g1, ('a' - 'A'), %g1 ! s2[1] = tolower(s2[1])
167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ?
169 inc %i1 ! s1++, s2++
195 andcc %i1, 3, %i3 ! s2 word-aligned ?
207 andcc %i1, 3, %i3 ! s2 word aligned ?
212 bz .word4 ! yup, s2 word-aligned
215 add %i2, %i3, %i2 ! start adjusting offset s1-s2
220 lduw [%i1], %i0 ! new lower word from s2
222 sll %i0, %l6, %g1 ! partial unaligned word from s2
234 bz,a,pt %ncc, .doload ! null byte in previous aligned s2 word
235 lduw [%i1 + 4], %i0 ! load next aligned word from s2
237 srl %i0, %l7, %i3 ! byte 1 from new aligned word from s2
238 or %g1, %i3, %g1 ! merge to get unaligned word from s2
255 add %l4, %g1, %g1 ! lowercase word from s2
256 cmp %i3, %g1 ! tolower(*s1) != tolower(*s2) ?
258 add %i1, 4, %i1 ! s1+=4, s2+=4
263 sll %i0, %l6, %g1 ! partial unaligned word from s2
281 lduw [%i1], %g1 ! x2 = word from s2
296 add %l4, %g1, %g1 ! lowercase word from s2
297 cmp %i3, %g1 ! tolower(*s1) != tolower(*s2) ?
299 add %i1, 4, %i1 ! s1+=4, s2+=4
313 srl %g1, 24, %i2 ! first byte of mismatching word in s2
315 subcc %i1, %i2, %i0 ! *s1-*s2
317 srl %g1, 16, %i2 ! second byte of mismatching word in s2
324 subcc %i1, %i2, %i0 ! *s1-*s2
326 srl %g1, 8, %i2 ! third byte of mismatching word in s2
333 subcc %i1, %i2, %i0 ! *s1-*s2
340 subcc %i3, %g1, %i0 ! *s1-*s2
346 restore %i0, %g0, %o0 ! return tolower(*s1) - tolower(*s2)