Are QT_HAVE_IWMMXT and QT_HAVE_NEON mutually exclusive?
Currently, if QT_HAVE_IWMMXT _or_ QT_HAVE_NEON is set to 1, this causes both features to be suppressed, which may not be what is desired if both extensions can be enabled in a general-purpose bulid.
@Richard,
Are QT_HAVE_IWMMXT and QT_HAVE_NEON mutually exclusive?
Currently, if QT_HAVE_IWMMXT _or_ QT_HAVE_NEON is set to 1, this causes both features to be suppressed, which may not be what is desired if both extensions can be enabled in a general-purpose bulid.
Maybe something like this:
int features = 0;
int features_mask = 0;
#ifdef QT_HAVE_IWMMXT "QT_NO_ IWMXXT" ).toInt( ) != 0)
if(qgetenv(
features_mask |= HWCAP_NEON;
#endif
#ifdef QT_HAVE_NEON "QT_NO_ NEON"). toInt() != 0)
if(qgetenv(
features_mask |= HWCAP_NEON;
#endif
#if defined(Q_OS_LINUX)
/* features = <result of querying /proc/self/auxv> */
#endif
return features & ~features_mask;