OLD | NEW |
1 /*************************************************************************** | 1 /*************************************************************************** |
2 * Copyright (c) 2009,2010, Code Aurora Forum. All rights reserved. | 2 * Copyright (c) 2009,2010, Code Aurora Forum. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 ***************************************************************************/ | 6 ***************************************************************************/ |
7 | 7 |
8 .code 32 | 8 .code 32 |
9 .fpu neon | 9 .fpu neon |
10 .align 4 | 10 .align 4 |
11 .globl memset32_neon | 11 .globl memset32_neon |
| 12 .hidden memset32_neon |
12 | 13 |
13 /* r0 = buffer, r1 = value, r2 = times to write */ | 14 /* r0 = buffer, r1 = value, r2 = times to write */ |
14 memset32_neon: | 15 memset32_neon: |
15 cmp r2, #1 | 16 cmp r2, #1 |
16 streq r1, [r0], #4 | 17 streq r1, [r0], #4 |
17 bxeq lr | 18 bxeq lr |
18 | 19 |
19 cmp r2, #4 | 20 cmp r2, #4 |
20 bgt memset32_neon_start | 21 bgt memset32_neon_start |
21 cmp r2, #0 | 22 cmp r2, #0 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 str r1, [r0, #24] | 103 str r1, [r0, #24] |
103 str r1, [r0, #20] | 104 str r1, [r0, #20] |
104 str r1, [r0, #16] | 105 str r1, [r0, #16] |
105 str r1, [r0, #12] | 106 str r1, [r0, #12] |
106 str r1, [r0, #8] | 107 str r1, [r0, #8] |
107 str r1, [r0, #4] | 108 str r1, [r0, #4] |
108 str r1, [r0, #0] | 109 str r1, [r0, #0] |
109 bx lr | 110 bx lr |
110 | 111 |
111 .end | 112 .end |
OLD | NEW |