Lines Matching +full:left +full:- +full:aligned

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);
35 * Then store as many 4-byte chunks, followed by trailing bytes.
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?
145 bz,pt %xcc, .blkalign ! already long word aligned
146 sub %o3, 8, %o3 ! -(bytes till long word aligned)
149 ! Set -(%o3) bytes till sp1 long word aligned
155 ! Now sp1 is long word aligned (sp1 is found in %o5)
161 andcc %o5, 63, %o3 ! is sp1 block aligned?
162 bz,pt %xcc, .blkwr ! now block aligned
163 sub %o3, 64, %o3 ! o3 is -(bytes till block aligned)
166 ! Store -(%o3) bytes till dst is block (64 byte) aligned.
168 ! Recall that dst is already long word aligned
175 ! Now sp1 is block aligned
179 and %o2, 63, %o3 ! %o3 = bytes left after blk stores.
184 ! must be > pre-cleared lines
187 ! initial cache-clearing stores
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
299 stx %o1, [%o5-16]
301 stx %o1, [%o5-8]
308 and %o2, 7, %o2 ! calc bytes left after long words
322 andcc %o5, 3, %o3 ! is sp1 aligned on a word boundary
333 st %o1, [%o5] ! 4-byte writing loop
352 .size M7memset,.-M7memset