Lines Matching refs:byte
58 ! Methods exist to handle per-byte, half-word, and word sized
73 tst %o1 ! byte zero?
74 stb %o1, [%o2] ! store first byte
76 cmp %o4, 3 ! only one byte needed to align?
82 srl %o1, 8, %o4 ! %o4<7:0> = first byte
83 tst %o4 ! first byte zero ?
85 stb %o4, [%o2] ! store first byte
86 andcc %o1, 0xff, %g0 ! second byte zero ?
88 stb %o1, [%o2 + 1] ! store second byte
106 bz,a .copyword ! no zero byte if magic expression == 0
110 set 0xff000000, %o4 ! mask for 1st byte
111 srl %o1, 24, %o3 ! %o3<7:0> = first byte
112 andcc %o1, %o4, %g0 ! first byte zero?
114 stb %o3, [%o2 - 4] ! store first byte
115 set 0x00ff0000, %o5 ! mask for 2nd byte
116 srl %o1, 16, %o3 ! %o3<7:0> = second byte
117 andcc %o1, %o5, %g0 ! second byte zero?
119 stb %o3, [%o2 - 3] ! store second byte
120 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte
121 andcc %o1, %o4, %g0 ! third byte zero?
122 srl %o1, 8, %o3 ! %o3<7:0> = third byte
124 stb %o3, [%o2 - 2] ! store third byte
125 stb %o1, [%o2 - 1] ! store fourth byte
142 bnz .zerobyte ! word has zero byte, handle end cases
143 srl %o1, 24, %g1 ! %g1<7:0> = first byte
144 stb %g1, [%o2 - 4] ! store first byte; half-word aligned now
145 srl %o1, 8, %g1 ! %g1<15:0> = byte 2, 3
148 stb %o1, [%o2 - 1] ! store fourth byte
157 bnz .zerobyte ! word has zero byte, handle end cases
158 srl %o1, 16, %g1 ! get first and second byte
159 sth %g1, [%o2 - 4] ! store first and second byte
161 sth %o1, [%o2 - 2] ! store third and fourth byte