Lines Matching refs:s1

128 	subcc	%i0, %i1, %i2		! s1 == s2 ?
130 andcc %i0, 3, %i3 ! s1 word-aligned ?
155 ldub [%i1 + %i2], %i0 ! s1[1]
159 cmp %l0, ('Z' - 'A') ! s1[1] uppercase?
161 add %i0, ('a' - 'A'), %i0 ! s1[1] = tolower(s1[1])
167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ?
169 inc %i1 ! s1++, s2++
170 addcc %i0, %g1, %i0 ! s1[1] == 0 ?
172 cmp %i3, 2 ! s1 aligned now?
194 ba .s1aligned4 ! s1 aligned now
215 add %i2, %i3, %i2 ! start adjusting offset s1-s2
217 andn %i1, 3, %i1 ! round s1 pointer down to next word
239 lduw [%i1 + %i2], %i3 ! x1 = word from s1
254 add %l0, %i3, %i3 ! lowercase word from s1
256 cmp %i3, %g1 ! tolower(*s1) != tolower(*s2) ?
258 add %i1, 4, %i1 ! s1+=4, s2+=4
262 bz .cmp ! no null-byte in s1 yet
265 ! words are equal but the end of s1 has been reached
276 lduw [%i1 + %i2], %i3 ! x1 = word from s1
294 add %l0, %i3, %i3 ! lowercase word from s1
296 cmp %i3, %g1 ! tolower(*s1) != tolower(*s2) ?
298 add %i1, 4, %i1 ! s1+=4, s2+=4
302 bz,a .cmp4 ! no null-byte in s1 yet
303 lduw [%i1 + %i2], %i3 ! load word from s1
305 ! words are equal but the end of s1 has been reached
313 srl %i3, 24, %i1 ! first byte of mismatching word in s1
314 subcc %i1, %i2, %i0 ! *s1-*s2
317 andcc %i1, 0xff, %i0 ! *s1 == 0 ?
322 srl %i3, 16, %i1 ! second byte of mismatching word in s1
323 subcc %i1, %i2, %i0 ! *s1-*s2
326 andcc %i1, 0xff, %i0 ! *s1 == 0 ?
331 srl %i3, 8, %i1 ! third byte of mismatching word in s1
332 subcc %i1, %i2, %i0 ! *s1-*s2
334 andcc %i1, 0xff, %g0 ! *s1 == 0 ?
339 subcc %i3, %g1, %i0 ! *s1-*s2
341 andcc %i3, 0xff, %i0 ! *s1 == 0, strings equal