mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
5a2c91137e
commit
529993e5f8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user