Skip to content

Commit cf568c8

Browse files
akallabethArmin Novak
andauthored
guard aarch64 assembly with __aarch64__ (#3905)
The symbol HAVE_NEON_AARCH64 is defined by the build system and not a full compile time check. When building multiarch binaries (apple universal) then also check for the compiler defined symbol __aarch64__ to ensure we are in the arm64 compiler block Co-authored-by: Armin Novak <[email protected]>
1 parent 1c5ac2f commit cf568c8

File tree

68 files changed

+80
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+80
-76
lines changed

codec/common/arm64/arm_aarch64_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#ifndef CODEC_COMMON_ARM64_ARM_AARCH64_COMMON_H_
3636
#define CODEC_COMMON_ARM64_ARM_AARCH64_COMMON_H_
3737

38+
#if defined(__aarch64__)
39+
3840
/*
3941
; Support macros for
4042
; - Armv8.3-A Pointer Authentication and
@@ -82,4 +84,6 @@
8284
.popsection;
8385
#endif
8486

87+
#endif
88+
8589
#endif /* CODEC_COMMON_ARM64_ARM_AARCH64_COMMON_H_ */

codec/common/arm64/copy_mb_aarch64_neon.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*/
3232

33-
#ifdef HAVE_NEON_AARCH64
33+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
3434
#include "arm_arch64_common_macro.S"
3535

3636
.macro LOAD_ALIGNED_DATA_WITH_STRIDE arg0, arg1, arg2, arg3, arg4, arg5

codec/common/arm64/deblocking_aarch64_neon.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*/
3232

33-
#ifdef HAVE_NEON_AARCH64
33+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
3434

3535
#include "arm_arch64_common_macro.S"
3636

codec/common/arm64/expand_picture_aarch64_neon.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*/
3232

33-
#ifdef HAVE_NEON_AARCH64
33+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
3434
#include "arm_arch64_common_macro.S"
3535
//void ExpandPictureLuma_AArch64_neon (uint8_t* pDst, const int32_t kiStride, const int32_t kiPicW, const int32_t kiPicH);
3636
WELS_ASM_AARCH64_FUNC_BEGIN ExpandPictureLuma_AArch64_neon

codec/common/arm64/intra_pred_common_aarch64_neon.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*/
3232

33-
#ifdef HAVE_NEON_AARCH64
33+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
3434
#include "arm_arch64_common_macro.S"
3535

3636
//for Luma 16x16

codec/common/arm64/mc_aarch64_neon.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*/
3232

33-
#ifdef HAVE_NEON_AARCH64
33+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
3434
#include "arm_arch64_common_macro.S"
3535
.align 4
3636
filter_para: .short 0, 1, -5, 20, 0, 0, 0, 0

codec/common/inc/copy_mb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void WelsCopy16x8NotAligned_neon (uint8_t* pDst, int32_t iStrideD, uint8_t* pSrc
6767
void WelsCopy8x16_neon (uint8_t* pDst, int32_t iStrideD, uint8_t* pSrc, int32_t iStrideS);
6868
#endif
6969

70-
#if defined (HAVE_NEON_AARCH64)
70+
#if defined (HAVE_NEON_AARCH64) && defined(__aarch64__)
7171
void WelsCopy8x8_AArch64_neon (uint8_t* pDst, int32_t iStrideD, uint8_t* pSrc, int32_t iStrideS);
7272
void WelsCopy16x16_AArch64_neon (uint8_t* pDst, int32_t iStrideD, uint8_t* pSrc, int32_t iStrideS);
7373
void WelsCopy16x16NotAligned_AArch64_neon (uint8_t* pDst, int32_t iStrideD, uint8_t* pSrc, int32_t iStrideS);

codec/common/inc/deblocking_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void DeblockChromaEq4H_neon (uint8_t* pPixCb, uint8_t* pPixCr, int32_t iStride,
6262
void WelsNonZeroCount_neon (int8_t* pNonZeroCount);
6363
#endif
6464

65-
#if defined(HAVE_NEON_AARCH64)
65+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
6666
void DeblockLumaLt4V_AArch64_neon (uint8_t* pPixY, int32_t iStride, int32_t iAlpha, int32_t iBeta, int8_t* pTc);
6767
void DeblockLumaEq4V_AArch64_neon (uint8_t* pPixY, int32_t iStride, int32_t iAlpha, int32_t iBeta);
6868
void DeblockLumaLt4H_AArch64_neon (uint8_t* pPixY, int32_t iStride, int32_t iAlpha, int32_t iBeta, int8_t* pTc);

codec/common/inc/expand_pic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void ExpandPictureChromaUnalign_sse2 (uint8_t* pDst,
6868
void ExpandPictureLuma_neon (uint8_t* pDst, const int32_t kiStride, const int32_t kiPicW, const int32_t kiPicH);
6969
void ExpandPictureChroma_neon (uint8_t* pDst, const int32_t kiStride, const int32_t kiPicW, const int32_t kiPicH);
7070
#endif
71-
#if defined(HAVE_NEON_AARCH64)
71+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
7272
void ExpandPictureLuma_AArch64_neon (uint8_t* pDst, const int32_t kiStride, const int32_t kiPicW, const int32_t kiPicH);
7373
void ExpandPictureChroma_AArch64_neon (uint8_t* pDst, const int32_t kiStride, const int32_t kiPicW,
7474
const int32_t kiPicH);

codec/common/inc/intra_pred_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void WelsI16x16LumaPredV_neon (uint8_t* pPred, uint8_t* pRef, const int32_t kiSt
6363
void WelsI16x16LumaPredH_neon (uint8_t* pPred, uint8_t* pRef, const int32_t kiStride);
6464
#endif//HAVE_NEON
6565

66-
#if defined(HAVE_NEON_AARCH64)
66+
#if defined(HAVE_NEON_AARCH64) && defined(__aarch64__)
6767
void WelsI16x16LumaPredV_AArch64_neon (uint8_t* pPred, uint8_t* pRef, const int32_t kiStride);
6868
void WelsI16x16LumaPredH_AArch64_neon (uint8_t* pPred, uint8_t* pRef, const int32_t kiStride);
6969
#endif//HAVE_NEON_AARCH64

0 commit comments

Comments
 (0)