[Qt-interest] 4.7.2 mingw binary and MMX/SSE support

Gabriel M. Beddingfield gabrbedd at gmail.com
Tue Mar 8 21:05:01 CET 2011



On Tue, 8 Mar 2011, Stephen Chu wrote:

> I am using downloaded mingw build of 4.7.2. Is MMX/SSE enabled in this
> prebuild package?

I don't know.  You can find out by using objdump to 
disassembl and then search for MMX/SSE instructions.

> Also how do I enable support of MMX/SSE intrinsics in
> my code?

If you wish to use Intel-style intrensics... 
Intel-compatible headers are shipped with gcc.  For example:

   #include <xmmintrin.h>

OTOH if you wish to use GCC vector extensions, refer to 
here:

   http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html

And make sure you compile with SSE enabled:

   -msse -mfpmath=sse

HTH,
Gabriel



More information about the Qt-interest-old mailing list