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,pt %ncc, .cmp ! no null-byte in s1 yet
265 ! words are equal but the end of s1 has been reached
277 lduw [%i1 + %i2], %i3 ! x1 = word from s1
295 add %l0, %i3, %i3 ! lowercase word from s1
297 cmp %i3, %g1 ! tolower(*s1) != tolower(*s2) ?
299 add %i1, 4, %i1 ! s1+=4, s2+=4
303 bz,a,pt %icc, .cmp4 ! no null-byte in s1 yet
304 lduw [%i1 + %i2], %i3 ! load word from s1
306 ! words are equal but the end of s1 has been reached
314 srl %i3, 24, %i1 ! first byte of mismatching word in s1
315 subcc %i1, %i2, %i0 ! *s1-*s2
318 andcc %i1, 0xff, %i0 ! *s1 == 0 ?
323 srl %i3, 16, %i1 ! second byte of mismatching word in s1
324 subcc %i1, %i2, %i0 ! *s1-*s2
327 andcc %i1, 0xff, %i0 ! *s1 == 0 ?
332 srl %i3, 8, %i1 ! third byte of mismatching word in s1
333 subcc %i1, %i2, %i0 ! *s1-*s2
335 andcc %i1, 0xff, %g0 ! *s1 == 0 ?
340 subcc %i3, %g1, %i0 ! *s1-*s2
342 andcc %i3, 0xff, %i0 ! *s1 == 0 ?
346 restore %i0, %g0, %o0 ! return tolower(*s1) - tolower(*s2)