Closed Bug 1360429 Opened 8 years ago Closed 8 years ago

Support NEON (support_neon) on aarch64

Categories

(Core :: mozglue, enhancement)

55 Branch
ARM
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(2 files)

aarch64 supports NEON, but supports_neon doesn't return true .
Attachment #8862722 - Flags: review+
Comment on attachment 8862721 [details] Bug 1360429 - Part 1. inline arm assember for YCBCR should be on arm only. https://reviewboard.mozilla.org/r/134586/#review137668
Attachment #8862721 - Flags: review?(sotaro.ikeda.g) → review+
Attachment #8862722 - Flags: review+
Comment on attachment 8862722 [details] Bug 1360429 - Part 2. Detect __ARM_NEON macro for aarch64. https://reviewboard.mozilla.org/r/134588/#review140434 ::: mozglue/build/arm.h:81 (Diff revision 1) > > #endif > > +// When using -mfpu=neon on arm, or using default on aarch64, > +// gcc generates neon instructions. > +#if defined(__GNUC__) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) No real need for __GNUC__, and all compilers that define __ARM_NEON__ also define __ARM_NEON, so you can limit to the latter.
Attachment #8862722 - Flags: review?(mh+mozilla)
"__ARM_NEON__" isn't defined on aarch64 compiler. (4.9 for android) aarch64-linux-android-cpp -dM < /dev/null | grep NEON #define __ARM_NEON 1 arm-linux-androideabi-cpp -dM -mfpu=neon -mfloat-abi=softfp -march=armv7-a < /dev/null | grep NEON #define __ARM_NEON_FP 4 #define __ARM_NEON__ 1 #define __ARM_NEON 1 (5.4 on Ubuntu 16.04TLS) aarch64-linux-gnu-cpp -dM </dev/null | grep NEON #define __ARM_NEON 1 arm-linux-gnueabihf-cpp -march=armv7-a -mfloat-abi=softfp -mfpu=neon -dM < /dev/null | grep NEON #define __ARM_NEON_FP 4 #define __ARM_NEON__ 1 #define __ARM_NEON 1
You're only confirming what I wrote ;)
Attachment #8862722 - Flags: review?(mh+mozilla) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/44e7fc73aeb5 Part 1. inline arm assember for YCBCR should be on arm only. r=sotaro https://hg.mozilla.org/integration/autoland/rev/edea8382d3f4 Part 2. Detect __ARM_NEON macro for aarch64. r=glandium
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: