Lines Matching refs:bytes

32  * Copy string s2 to s1, truncating or null-padding to always copy n bytes
55 ! strncpy works similarly to strcpy, except that n bytes of s2
57 ! bytes remain to be copied, strncpy will copy null bytes into
75 sub %o4, 8, %o4 ! bytes until src aligned
99 be,pn %ncc, .storebyte1241 ! store 1, 2, 4, 1 bytes
102 be,pn %ncc, .storebyte1421 ! store 1, 4, 2, 1 bytes
120 ! remaining src bytes and then start padding with null bytes
127 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
131 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
135 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
139 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
143 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
147 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
151 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
153 addcc %g4, 16, %g0 ! number of pad bytes < 16 ?
162 sub %o4, 8, %o4 ! bytes to align dst to dword boundary
173 ! here we know that there at least another 8 bytes to pad, since
174 ! we don't get here unless there were >= 16 bytes to pad to begin
175 ! with, and we have padded at most 7 bytes suring dst aligning
184 bz,pt %ncc, .bytepad ! if dword count == 1, pad leftover bytes
215 ! this is the last word. It may contain null bytes. store bytes
227 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
233 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
239 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
245 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
251 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
257 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
263 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
280 srlx %o1, 24, %g1 ! %g1<31:0> = bytes 2, 3, 4, 5
281 stw %g1, [%g5 + 1] ! store bytes 2, 3, 4, 5
282 srlx %o1, 8, %g1 ! %g1<15:0> = bytes 6, 7
283 sth %g1, [%g5 + 5] ! store bytes 6, 7
298 srlx %o1, 40, %g1 ! %g1<15:0> = bytes 2, 3
299 sth %g1, [%g5 + 1] ! store bytes 2, 3
300 srlx %o1, 8, %g1 ! %g1<31:0> = bytes 4, 5, 6, 7
301 stw %g1, [%g5 + 3] ! store bytes 4, 5, 6, 7
314 srlx %o1, 48, %g1 ! %g1<15:0> = bytes 1, 2; word aligned now
315 sth %g1, [%g5] ! store bytes 1, 2
316 srlx %o1, 16, %g1 ! %g1<31:0> = bytes 3, 4, 5, 6
317 stw %g1, [%g5 + 2] ! store bytes 3, 4, 5, 6
319 sth %o1, [%g5 + 6] ! store bytes 7, 8
332 srlx %o1, 32, %g1 ! %g1<31:0> = bytes 1, 2, 3, 4
333 stw %g1, [%g5] ! store bytes 1, 2, 3, 4
335 stw %o1, [%g5 + 4] ! store bytes 5, 6, 7, 8