Bug 1360429 - Part 2. Detect __ARM_NEON macro for aarch64. r=glandium

aarch64's gcc and arm's gcc with -mfpu=neon defines __ARM_NEON for NEON, so we should detect it to support NEON code.

MozReview-Commit-ID: LRMTQLctuLV

--HG--
extra : rebase_source : 9e09eb9b67824c81dc45198acd6582584a5e1652
This commit is contained in:
Makoto Kato 2017-04-28 13:27:10 +09:00
parent 5a2c91137e
commit 529993e5f8

View File

@ -67,12 +67,6 @@
# if defined(HAVE_ARM_SIMD)
# define MOZILLA_MAY_SUPPORT_ARMV7 1
# endif
# endif
// When using -mfpu=neon, gcc generates neon instructions.
# if defined(__ARM_NEON__)
# define MOZILLA_PRESUME_NEON 1
# endif
// Currently we only have CPU detection for Linux via /proc/cpuinfo
@ -82,6 +76,12 @@
#endif
// When using -mfpu=neon on arm gcc, or using default on aarch64,
// the compiler generates neon instructions.
#if defined(__ARM_NEON)
# define MOZILLA_PRESUME_NEON 1
#endif
namespace mozilla {
namespace arm_private {