Added
Link Here
|
1 |
--- common/arm/mc-a.S.orig 2014-08-27 20:45:08 UTC |
2 |
+++ common/arm/mc-a.S |
3 |
@@ -50,7 +50,7 @@ function x264_prefetch_ref_arm |
4 |
pld [r3, r1, lsl #1] |
5 |
pld [r3, r2] |
6 |
bx lr |
7 |
-.endfunc |
8 |
+endfunc |
9 |
|
10 |
// void prefetch_fenc( uint8_t *pix_y, intptr_t stride_y, |
11 |
// uint8_t *pix_uv, intptr_t stride_uv, int mb_x ) |
12 |
@@ -76,7 +76,7 @@ function x264_prefetch_fenc_arm |
13 |
pld [ip] |
14 |
pld [ip, r3] |
15 |
pop {pc} |
16 |
-.endfunc |
17 |
+endfunc |
18 |
|
19 |
|
20 |
// void *x264_memcpy_aligned( void *dst, const void *src, size_t n ) |
21 |
@@ -85,7 +85,7 @@ function x264_memcpy_aligned_neon |
22 |
movrel ip, memcpy_table |
23 |
and r3, r3, #0xc |
24 |
ldr pc, [ip, r3] |
25 |
-.endfunc |
26 |
+endfunc |
27 |
|
28 |
.macro MEMCPY_ALIGNED srcalign dstalign |
29 |
function memcpy_aligned_\dstalign\()_\srcalign\()_neon, export=0 |
30 |
@@ -127,7 +127,7 @@ function memcpy_aligned_\dstalign\()_\sr |
31 |
vst1.64 {d0}, [r3,:64]! |
32 |
.endif |
33 |
bx lr |
34 |
-.endfunc |
35 |
+endfunc |
36 |
.endm |
37 |
|
38 |
MEMCPY_ALIGNED 16, 16 |
39 |
@@ -156,7 +156,7 @@ memzero_loop: |
40 |
.endr |
41 |
bgt memzero_loop |
42 |
bx lr |
43 |
-.endfunc |
44 |
+endfunc |
45 |
|
46 |
|
47 |
// void pixel_avg( uint8_t *dst, intptr_t dst_stride, |
48 |
@@ -175,7 +175,7 @@ function x264_pixel_avg_\w\()x\h\()_neon |
49 |
cmp ip, #0 |
50 |
bge x264_pixel_avg_weight_w\w\()_add_add_neon |
51 |
b x264_pixel_avg_weight_w\w\()_sub_add_neon // weight < 0 |
52 |
-.endfunc |
53 |
+endfunc |
54 |
.endm |
55 |
|
56 |
AVGH 4, 2 |
57 |
@@ -253,7 +253,7 @@ function x264_pixel_avg_weight_w4_\ext\( |
58 |
vst1.32 {d1[0]}, [r0,:32], r1 |
59 |
bgt 1b |
60 |
pop {r4-r6,pc} |
61 |
-.endfunc |
62 |
+endfunc |
63 |
|
64 |
function x264_pixel_avg_weight_w8_\ext\()_neon, export=0 |
65 |
load_weights_\ext |
66 |
@@ -277,7 +277,7 @@ function x264_pixel_avg_weight_w8_\ext\( |
67 |
vst1.64 {d3}, [r0,:64], r1 |
68 |
bgt 1b |
69 |
pop {r4-r6,pc} |
70 |
-.endfunc |
71 |
+endfunc |
72 |
|
73 |
function x264_pixel_avg_weight_w16_\ext\()_neon, export=0 |
74 |
load_weights_\ext |
75 |
@@ -297,7 +297,7 @@ function x264_pixel_avg_weight_w16_\ext\ |
76 |
vst1.64 {d2-d3}, [r0,:128], r1 |
77 |
bgt 1b |
78 |
pop {r4-r6,pc} |
79 |
-.endfunc |
80 |
+endfunc |
81 |
.endm |
82 |
|
83 |
AVG_WEIGHT add_add |
84 |
@@ -316,7 +316,7 @@ function x264_pixel_avg_w4_neon, export= |
85 |
vst1.32 {d1[0]}, [r0,:32], r1 |
86 |
bgt x264_pixel_avg_w4_neon |
87 |
pop {r4-r6,pc} |
88 |
-.endfunc |
89 |
+endfunc |
90 |
|
91 |
function x264_pixel_avg_w8_neon, export=0 |
92 |
subs lr, lr, #4 |
93 |
@@ -338,7 +338,7 @@ function x264_pixel_avg_w8_neon, export= |
94 |
vst1.64 {d3}, [r0,:64], r1 |
95 |
bgt x264_pixel_avg_w8_neon |
96 |
pop {r4-r6,pc} |
97 |
-.endfunc |
98 |
+endfunc |
99 |
|
100 |
function x264_pixel_avg_w16_neon, export=0 |
101 |
subs lr, lr, #4 |
102 |
@@ -360,7 +360,7 @@ function x264_pixel_avg_w16_neon, export |
103 |
vst1.64 {d6-d7}, [r0,:128], r1 |
104 |
bgt x264_pixel_avg_w16_neon |
105 |
pop {r4-r6,pc} |
106 |
-.endfunc |
107 |
+endfunc |
108 |
|
109 |
|
110 |
function x264_pixel_avg2_w4_neon |
111 |
@@ -379,7 +379,7 @@ avg2_w4_loop: |
112 |
vst1.32 {d1[0]}, [r0,:32], r1 |
113 |
bgt avg2_w4_loop |
114 |
pop {pc} |
115 |
-.endfunc |
116 |
+endfunc |
117 |
|
118 |
function x264_pixel_avg2_w8_neon |
119 |
ldr ip, [sp, #4] |
120 |
@@ -397,7 +397,7 @@ avg2_w8_loop: |
121 |
vst1.64 {d1}, [r0,:64], r1 |
122 |
bgt avg2_w8_loop |
123 |
pop {pc} |
124 |
-.endfunc |
125 |
+endfunc |
126 |
|
127 |
function x264_pixel_avg2_w16_neon |
128 |
ldr ip, [sp, #4] |
129 |
@@ -415,7 +415,7 @@ avg2_w16_loop: |
130 |
vst1.64 {d4-d5}, [r0,:128], r1 |
131 |
bgt avg2_w16_loop |
132 |
pop {pc} |
133 |
-.endfunc |
134 |
+endfunc |
135 |
|
136 |
function x264_pixel_avg2_w20_neon |
137 |
ldr ip, [sp, #4] |
138 |
@@ -438,7 +438,7 @@ avg2_w20_loop: |
139 |
vst1.32 {d6[0]}, [r0,:32], r1 |
140 |
bgt avg2_w20_loop |
141 |
pop {pc} |
142 |
-.endfunc |
143 |
+endfunc |
144 |
|
145 |
|
146 |
.macro weight_prologue type |
147 |
@@ -499,7 +499,7 @@ weight20_loop: |
148 |
vst1.32 {d20[1]}, [r0,:32], r1 |
149 |
bgt weight20_loop |
150 |
pop {r4-r5,pc} |
151 |
-.endfunc |
152 |
+endfunc |
153 |
|
154 |
function x264_mc_weight_w16_neon |
155 |
weight_prologue full |
156 |
@@ -531,7 +531,7 @@ weight16_loop: |
157 |
vst1.8 {d18-d19}, [r0,:128], r1 |
158 |
bgt weight16_loop |
159 |
pop {r4-r5,pc} |
160 |
-.endfunc |
161 |
+endfunc |
162 |
|
163 |
function x264_mc_weight_w8_neon |
164 |
weight_prologue full |
165 |
@@ -553,7 +553,7 @@ weight8_loop: |
166 |
vst1.8 {d18}, [r0,:64], r1 |
167 |
bgt weight8_loop |
168 |
pop {r4-r5,pc} |
169 |
-.endfunc |
170 |
+endfunc |
171 |
|
172 |
function x264_mc_weight_w4_neon |
173 |
weight_prologue full |
174 |
@@ -572,7 +572,7 @@ weight4_loop: |
175 |
vst1.32 {d16[1]}, [r0,:32], r1 |
176 |
bgt weight4_loop |
177 |
pop {r4-r5,pc} |
178 |
-.endfunc |
179 |
+endfunc |
180 |
|
181 |
function x264_mc_weight_w20_nodenom_neon |
182 |
weight_prologue nodenom |
183 |
@@ -609,7 +609,7 @@ weight20_nodenom_loop: |
184 |
vst1.32 {d20[1]}, [r0,:32], r1 |
185 |
bgt weight20_nodenom_loop |
186 |
pop {r4-r5,pc} |
187 |
-.endfunc |
188 |
+endfunc |
189 |
|
190 |
function x264_mc_weight_w16_nodenom_neon |
191 |
weight_prologue nodenom |
192 |
@@ -637,7 +637,7 @@ weight16_nodenom_loop: |
193 |
vst1.8 {d18-d19}, [r0,:128], r1 |
194 |
bgt weight16_nodenom_loop |
195 |
pop {r4-r5,pc} |
196 |
-.endfunc |
197 |
+endfunc |
198 |
|
199 |
function x264_mc_weight_w8_nodenom_neon |
200 |
weight_prologue nodenom |
201 |
@@ -657,7 +657,7 @@ weight8_nodenom_loop: |
202 |
vst1.8 {d17}, [r0,:64], r1 |
203 |
bgt weight8_nodenom_loop |
204 |
pop {r4-r5,pc} |
205 |
-.endfunc |
206 |
+endfunc |
207 |
|
208 |
function x264_mc_weight_w4_nodenom_neon |
209 |
weight_prologue nodenom |
210 |
@@ -675,7 +675,7 @@ weight4_nodenom_loop: |
211 |
vst1.32 {d16[1]}, [r0,:32], r1 |
212 |
bgt weight4_nodenom_loop |
213 |
pop {r4-r5,pc} |
214 |
-.endfunc |
215 |
+endfunc |
216 |
|
217 |
.macro weight_simple_prologue |
218 |
push {lr} |
219 |
@@ -699,7 +699,7 @@ weight20_\name\()_loop: |
220 |
vst1.8 {d19-d21}, [r0,:64], r1 |
221 |
bgt weight20_\name\()_loop |
222 |
pop {pc} |
223 |
-.endfunc |
224 |
+endfunc |
225 |
|
226 |
function x264_mc_weight_w16_\name\()_neon |
227 |
weight_simple_prologue |
228 |
@@ -713,7 +713,7 @@ weight16_\name\()_loop: |
229 |
vst1.8 {d18-d19}, [r0,:128], r1 |
230 |
bgt weight16_\name\()_loop |
231 |
pop {pc} |
232 |
-.endfunc |
233 |
+endfunc |
234 |
|
235 |
function x264_mc_weight_w8_\name\()_neon |
236 |
weight_simple_prologue |
237 |
@@ -726,7 +726,7 @@ weight8_\name\()_loop: |
238 |
vst1.8 {d17}, [r0,:64], r1 |
239 |
bgt weight8_\name\()_loop |
240 |
pop {pc} |
241 |
-.endfunc |
242 |
+endfunc |
243 |
|
244 |
function x264_mc_weight_w4_\name\()_neon |
245 |
weight_simple_prologue |
246 |
@@ -739,7 +739,7 @@ weight4_\name\()_loop: |
247 |
vst1.32 {d17[0]}, [r0,:32], r1 |
248 |
bgt weight4_\name\()_loop |
249 |
pop {pc} |
250 |
-.endfunc |
251 |
+endfunc |
252 |
.endm |
253 |
|
254 |
weight_simple offsetadd, vqadd.u8 |
255 |
@@ -761,7 +761,7 @@ copy_w4_loop: |
256 |
vst1.32 {d3[0]}, [r0,:32], r1 |
257 |
bgt copy_w4_loop |
258 |
bx lr |
259 |
-.endfunc |
260 |
+endfunc |
261 |
|
262 |
function x264_mc_copy_w8_neon |
263 |
ldr ip, [sp] |
264 |
@@ -777,7 +777,7 @@ copy_w8_loop: |
265 |
vst1.32 {d3}, [r0,:64], r1 |
266 |
bgt copy_w8_loop |
267 |
bx lr |
268 |
-.endfunc |
269 |
+endfunc |
270 |
|
271 |
function x264_mc_copy_w16_neon |
272 |
ldr ip, [sp] |
273 |
@@ -793,7 +793,7 @@ copy_w16_loop: |
274 |
vst1.32 {d6-d7}, [r0,:128], r1 |
275 |
bgt copy_w16_loop |
276 |
bx lr |
277 |
-.endfunc |
278 |
+endfunc |
279 |
|
280 |
function x264_mc_copy_w16_aligned_neon |
281 |
ldr ip, [sp] |
282 |
@@ -809,7 +809,7 @@ copy_w16_aligned_loop: |
283 |
vst1.32 {d6-d7}, [r0,:128], r1 |
284 |
bgt copy_w16_aligned_loop |
285 |
bx lr |
286 |
-.endfunc |
287 |
+endfunc |
288 |
|
289 |
|
290 |
// void x264_mc_chroma_neon( uint8_t *dst, intptr_t i_dst_stride, |
291 |
@@ -1159,7 +1159,7 @@ mc_chroma_w8: |
292 |
vpop {d8-d11} |
293 |
pop {r4-r8, pc} |
294 |
|
295 |
-.endfunc |
296 |
+endfunc |
297 |
|
298 |
|
299 |
// hpel_filter_v( uint8_t *dst, uint8_t *src, int16_t *buf, intptr_t stride, int width ) |
300 |
@@ -1200,7 +1200,7 @@ filter_v_loop: |
301 |
vst1.64 {d0-d1}, [r0,:128]! |
302 |
bgt filter_v_loop |
303 |
pop {pc} |
304 |
-.endfunc |
305 |
+endfunc |
306 |
|
307 |
// hpel_filter_c( uint8_t *dst, int16_t *buf, int width ); |
308 |
function x264_hpel_filter_c_neon |
309 |
@@ -1285,7 +1285,7 @@ filter_c_loop: |
310 |
vst1.64 {d30-d31}, [r0,:128]! |
311 |
bgt filter_c_loop |
312 |
bx lr |
313 |
-.endfunc |
314 |
+endfunc |
315 |
|
316 |
// hpel_filter_h( uint8_t *dst, uint8_t *src, int width ); |
317 |
function x264_hpel_filter_h_neon |
318 |
@@ -1372,7 +1372,7 @@ filter_h_loop: |
319 |
vst1.64 {d6-d7}, [r0,:128]! |
320 |
bgt filter_h_loop |
321 |
bx lr |
322 |
-.endfunc |
323 |
+endfunc |
324 |
|
325 |
|
326 |
// frame_init_lowres_core( uint8_t *src0, uint8_t *dst0, uint8_t *dsth, uint8_t *dstv, |
327 |
@@ -1464,7 +1464,7 @@ lowres_xloop_end: |
328 |
|
329 |
vpop {d8-d15} |
330 |
pop {r4-r10,pc} |
331 |
-.endfunc |
332 |
+endfunc |
333 |
|
334 |
function x264_load_deinterleave_chroma_fdec_neon |
335 |
mov ip, #FDEC_STRIDE/2 |
336 |
@@ -1477,7 +1477,7 @@ function x264_load_deinterleave_chroma_f |
337 |
bgt 1b |
338 |
|
339 |
bx lr |
340 |
-.endfunc |
341 |
+endfunc |
342 |
|
343 |
function x264_load_deinterleave_chroma_fenc_neon |
344 |
mov ip, #FENC_STRIDE/2 |
345 |
@@ -1490,7 +1490,7 @@ function x264_load_deinterleave_chroma_f |
346 |
bgt 1b |
347 |
|
348 |
bx lr |
349 |
-.endfunc |
350 |
+endfunc |
351 |
|
352 |
function x264_plane_copy_deinterleave_neon |
353 |
push {r4-r7, lr} |
354 |
@@ -1516,7 +1516,7 @@ block: |
355 |
bgt block |
356 |
|
357 |
pop {r4-r7, pc} |
358 |
-.endfunc |
359 |
+endfunc |
360 |
|
361 |
function x264_plane_copy_deinterleave_rgb_neon |
362 |
push {r4-r8, r10, r11, lr} |
363 |
@@ -1568,7 +1568,7 @@ block4: |
364 |
bgt block4 |
365 |
|
366 |
pop {r4-r8, r10, r11, pc} |
367 |
-.endfunc |
368 |
+endfunc |
369 |
|
370 |
function x264_plane_copy_interleave_neon |
371 |
push {r4-r7, lr} |
372 |
@@ -1595,7 +1595,7 @@ blocki: |
373 |
bgt blocki |
374 |
|
375 |
pop {r4-r7, pc} |
376 |
-.endfunc |
377 |
+endfunc |
378 |
|
379 |
function x264_store_interleave_chroma_neon |
380 |
push {lr} |
381 |
@@ -1609,4 +1609,4 @@ function x264_store_interleave_chroma_ne |
382 |
bgt 1b |
383 |
|
384 |
pop {pc} |
385 |
-.endfunc |
386 |
+endfunc |