[Bug 664431] Re: QT on armel is built with NEON by default

Dave Martin Dave.Martin at arm.com
Thu Nov 4 10:03:58 UTC 2010


@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;

-- 
QT on armel is built with NEON by default
https://bugs.launchpad.net/bugs/664431
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.




More information about the kubuntu-bugs mailing list