History

Fix building svc_motion_estimation.S for android

The .align directive takes an argument in number of bits, i.e. the actual alignment is 2^n. Previously building with binutils failed, since 16 isn't a valid parameter to .align, the maximum is 15. Thus, this makes the code try to align to 16 bytes, instead of aligning to 65536 bytes. This fixes building for android. This also clears up the same mistake in the aarch64 code, even though that one built just fine.

Martin Storsjö committed 12 years ago

Commit 81ac3d21 parent 464244c5 files · +7 −7Browse files

Unified · Split

5 files
  1. codec/common/arm64/mc_aarch64_neon.S +1 −1
  2. codec/decoder/core/arm64/intra_pred_aarch64_neon.S +2 −2
  3. codec/encoder/core/arm/svc_motion_estimation.S +1 −1
  4. codec/encoder/core/arm64/intra_pred_aarch64_neon.S +2 −2
  5. codec/encoder/core/arm64/svc_motion_estimation_aarch64_neon.S +1 −1
codec/common/arm64/mc_aarch64_neon.S+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #ifdef HAVE_NEON_AARCH64
3434 .text
3535 #include "arm_arch64_common_macro.S"
36−.align 16
36+.align 4
3737 filter_para: .short 0, 1, -5, 20, 0, 0, 0, 0
3838
3939 #ifdef __APPLE__
codec/decoder/core/arm64/intra_pred_aarch64_neon.S+2−2
@@ -308,7 +308,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsDecoderIChromaPredDcTop_AArch64_neon · 307 unmodified lines
308308 .endr
309309 WELS_ASM_AARCH64_FUNC_END
310310
311−.align 16
311+.align 4
312312 intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4
313313 intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4
314314
@@ -457,7 +457,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsDecoderI16x16LumaPredDcLeft_AArch64_neon · 142 unmodified lines
457457 WELS_ASM_AARCH64_FUNC_END
458458
459459
460−.align 16
460+.align 4
461461 intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40
462462 intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8
463463
codec/encoder/core/arm/svc_motion_estimation.S+1−1
@@ -292,7 +292,7 @@ _hash_assign_end: · 291 unmodified lines
292292 ldmia sp!, {r4-r7}
293293 WELS_ASM_FUNC_END
294294
295−.align 16
295+.align 4
296296 mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00
297297 mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00
298298 mx_x_offset_x4: .short 0x00, 0x04, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00
codec/encoder/core/arm64/intra_pred_aarch64_neon.S+2−2
@@ -294,7 +294,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsIChromaPredDcTop_AArch64_neon · 293 unmodified lines
294294 .endr
295295 WELS_ASM_AARCH64_FUNC_END
296296
297−.align 16
297+.align 4
298298 intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4
299299 intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4
300300
@@ -437,7 +437,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsI16x16LumaPredDcLeft_AArch64_neon · 136 unmodified lines
437437 WELS_ASM_AARCH64_FUNC_END
438438
439439
440−.align 16
440+.align 4
441441 intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40
442442 intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8
443443
codec/encoder/core/arm64/svc_motion_estimation_aarch64_neon.S+1−1
@@ -271,7 +271,7 @@ _hash_assign_loop_x4_rem: · 270 unmodified lines
271271 _hash_assign_end:
272272 WELS_ASM_AARCH64_FUNC_END
273273
274−.align 16
274+.align 4
275275 mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00
276276 mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00
277277 mx_x_offset_x4: .short 0x00, 0x04, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t