diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-11-11 09:39:09 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-11-11 12:52:28 (GMT) |
commit | fac68dca46131d63f11c37210834073848f5a93d (patch) | |
tree | 02044261c86ab1985e6e301ff3e7623554c3fc40 /src/corelib/tools/qsimd_p.h | |
parent | d134345b02c6813289e67ba6c5ffe6daa1086516 (diff) | |
download | Qt-fac68dca46131d63f11c37210834073848f5a93d.zip Qt-fac68dca46131d63f11c37210834073848f5a93d.tar.gz Qt-fac68dca46131d63f11c37210834073848f5a93d.tar.bz2 |
Don't set -mfpu=neon globally if the compiler supports neon.
By default only drawhelpers and image loaders will now use neon.
If -mfpu=neon has been explicitly enabled in the mkspec,
QT_ALWAYS_HAVE_NEON will be defined, allowing the use of neon
intrinsics elsewhere.
Task-number: QTBUG-15163
Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'src/corelib/tools/qsimd_p.h')
-rw-r--r-- | src/corelib/tools/qsimd_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index 664543b..87fa770 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -105,7 +105,8 @@ QT_BEGIN_HEADER #endif // defined(QT_HAVE_SSE2) && (defined(__SSE2__) || defined(Q_CC_MSVC)) // NEON intrinsics -#if defined(QT_HAVE_NEON) +#if defined __ARM_NEON__ +#define QT_ALWAYS_HAVE_NEON #include <arm_neon.h> #endif |