Lines Matching +full:256 +full:- +full:byte

15  * Fast assembler language version of the following C-program for memset
16 * which represents the `standard' for the C-library.
25 * } while (--n != 0);
34 * For less than 32 bytes stores, align the address on 4 byte boundary.
35 * Then store as many 4-byte chunks, followed by trailing bytes.
37 * For sizes greater than 32 bytes, align the address on 8 byte boundary.
39 * store 8-bytes chunks to align the address on 64 byte boundary
42 * 64-byte cache line to zero which will also clear the
49 * In the main loop, continue pre-setting the first long
56 * store remaining data in 64-byte chunks until less than
59 * Store as many 8-byte chunks, followed by trailing bytes.
109 .size M7clear_page,.-M7clear_page
110 .size M7clear_user_page,.-M7clear_user_page
122 .size M7bzero,.-M7bzero
144 andcc %o5, 7, %o3 ! is sp1 aligned on a 8 byte bound?
146 sub %o3, 8, %o3 ! -(bytes till long word aligned)
149 ! Set -(%o3) bytes till sp1 long word aligned
150 1: stb %o1, [%o5] ! there is at least 1 byte to set
151 inccc %o3 ! byte clearing loop
163 sub %o3, 64, %o3 ! o3 is -(bytes till block aligned)
166 ! Store -(%o3) bytes till dst is block (64 byte) aligned.
184 ! must be > pre-cleared lines
187 ! initial cache-clearing stores
200 add %o5, 256, %o5
201 stxa %o1, [%o5+8-128]%asi
203 stxa %o1, [%o5+8-64]%asi
217 stxa %o1, [%o5-8]%asi
241 stxa %o1, [%o5-8]%asi
249 ! For each 64 byte cache line, single STBI to first element
256 sub %o4, 256, %o4
261 subcc %o4, 256, %o4
263 add %o5, 256, %o5
269 add %o4, 256, %o4
299 stx %o1, [%o5-16]
301 stx %o1, [%o5-8]
327 stb %o1, [%o5] ! clear a byte
329 inc %o5 ! next byte
333 st %o1, [%o5] ! 4-byte writing loop
352 .size M7memset,.-M7memset