Comment 25 for bug 664431

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

@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
if(qgetenv("QT_NO_IWMXXT").toInt() != 0)
    features_mask |= HWCAP_NEON;
#endif

#ifdef QT_HAVE_NEON
if(qgetenv("QT_NO_NEON").toInt() != 0)
    features_mask |= HWCAP_NEON;
#endif

#if defined(Q_OS_LINUX)
/* features = <result of querying /proc/self/auxv> */
#endif

return features & ~features_mask;