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
33#ifdef HAVE_NEON_AARCH6433#ifdef HAVE_NEON_AARCH64
34.text34.text
35#include "arm_arch64_common_macro.S"35#include "arm_arch64_common_macro.S"
36.align 1636.align 4
37filter_para: .short 0, 1, -5, 20, 0, 0, 0, 037filter_para: .short 0, 1, -5, 20, 0, 0, 0, 0
38 38
39#ifdef __APPLE__39#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
308.endr308.endr
309WELS_ASM_AARCH64_FUNC_END309WELS_ASM_AARCH64_FUNC_END
310 310
311.align 16311.align 4
312intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4312intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4
313intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4313intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4
314 314
@@ -457,7 +457,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsDecoderI16x16LumaPredDcLeft_AArch64_neon · 142 unmodified lines
457WELS_ASM_AARCH64_FUNC_END457WELS_ASM_AARCH64_FUNC_END
458 458
459 459
460.align 16460.align 4
461intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40461intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40
462intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8462intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8
463 463
codec/encoder/core/arm/svc_motion_estimation.S+1−1
@@ -292,7 +292,7 @@ _hash_assign_end: · 291 unmodified lines
292 ldmia sp!, {r4-r7}292 ldmia sp!, {r4-r7}
293WELS_ASM_FUNC_END293WELS_ASM_FUNC_END
294 294
295.align 16295.align 4
296mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00296mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00
297mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00297mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00
298mx_x_offset_x4: .short 0x00, 0x04, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00298mx_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
294.endr294.endr
295WELS_ASM_AARCH64_FUNC_END295WELS_ASM_AARCH64_FUNC_END
296 296
297.align 16297.align 4
298intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4298intra_1_to_4: .short 17*1, 17*2, 17*3, 17*4, 17*1, 17*2, 17*3, 17*4
299intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4299intra_m3_to_p4: .short -3, -2, -1, 0, 1, 2, 3, 4
300 300
@@ -437,7 +437,7 @@ WELS_ASM_AARCH64_FUNC_BEGIN WelsI16x16LumaPredDcLeft_AArch64_neon · 136 unmodified lines
437WELS_ASM_AARCH64_FUNC_END437WELS_ASM_AARCH64_FUNC_END
438 438
439 439
440.align 16440.align 4
441intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40441intra_1_to_8: .short 5, 10, 15, 20, 25, 30, 35, 40
442intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8442intra_m7_to_p8: .short -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8
443 443
codec/encoder/core/arm64/svc_motion_estimation_aarch64_neon.S+1−1
@@ -271,7 +271,7 @@ _hash_assign_loop_x4_rem: · 270 unmodified lines
271_hash_assign_end:271_hash_assign_end:
272WELS_ASM_AARCH64_FUNC_END272WELS_ASM_AARCH64_FUNC_END
273 273
274.align 16274.align 4
275mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00275mv_x_inc_x4: .short 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00
276mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00276mv_y_inc_x4: .short 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00
277mx_x_offset_x4: .short 0x00, 0x04, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00277mx_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