Lines Matching refs:byte

38 	! string for a null byte.  We have fast code for this, so it's
40 ! word aligned, we check a for the search char a byte at a time
42 ! some zero-byte finding values are initialized and the string
49 andcc %o1, 0xff, %o1 ! search only for this one byte
60 cmp %o4, 3 ! only one byte needed to align?
94 bnz .haszerobyte ! zero byte if magic expression != 0
103 ! byte. if there was a null byte, we would have gone to .haszerobyte
107 set 0xff000000, %o4 ! mask for 1st byte
108 andcc %g1, %o4, %g0 ! first byte zero (= found search char) ?
110 set 0x00ff0000, %o5 ! mask for 2nd byte
112 andcc %g1, %o5, %g0 ! second byte zero (= found search char) ?
114 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte
116 andcc %g1, %o4, %g0 ! third byte zero (= found search char) ?
124 ! Here we know that "word" contains a null byte indicating the
130 set 0xff000000, %o4 ! mask for 1st byte
131 andcc %g1, %o4, %g0 ! first byte == findchar ?
133 andcc %o2, %o4, %g0 ! first byte == 0 ?
135 set 0x00ff0000, %o4 ! mask for 2nd byte
137 andcc %g1, %o4, %g0 ! second byte == findchar ?
139 andcc %o2, %o4, %g0 ! second byte == 0 ?
141 srl %o4, 8, %o4 ! mask for 3rd byte = 0x0000ff00
143 andcc %g1, %o4, %g0 ! third byte == findchar ?
145 andcc %o2, %o4, %g0 ! third byte == 0 ?
147 andcc %g1, 0xff, %g0 ! fourth byte == findchar ?
165 tst %o1 ! byte zero?
167 cmp %o4, 3 ! only one byte needed to align?
177 srl %o1, 8, %o4 ! %o4<7:0> = first byte
178 tst %o4 ! first byte zero ?
180 andcc %o1, 0xff, %g0 ! second byte zero ?
196 bz,a .searchword ! no zero byte if magic expression == 0
200 set 0xff000000, %o4 ! mask for 1st byte
201 andcc %o1, %o4, %g0 ! first byte zero?
203 set 0x00ff0000, %o5 ! mask for 2nd byte
205 andcc %o1, %o5, %g0 ! second byte zero?
207 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte
209 andcc %o1, %o4, %g0 ! third byte zero?