diff options
| author | Thiago Macieira <[email protected]> | 2012-03-22 19:34:41 -0300 |
|---|---|---|
| committer | Qt by Nokia <[email protected]> | 2012-03-26 18:39:29 +0200 |
| commit | 15e9b77cacc030016e13dc4571328c56ff26e5db (patch) | |
| tree | c5def34d14a6e877007e694e87e634121945716a /src | |
| parent | 7db5f0dd6a3a876279a32cf060dfbc929c615de4 (diff) | |
Add support for detecting SSE2 and SSE3 on WinCE
Change-Id: Ic26ba2073d1f1d7e12338811b86f9b99ea8f1eac
Reviewed-by: Andreas Holzammer <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/tools/qsimd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qsimd.cpp b/src/corelib/tools/qsimd.cpp index 0d816bd7365..5f54ae742d0 100644 --- a/src/corelib/tools/qsimd.cpp +++ b/src/corelib/tools/qsimd.cpp @@ -88,6 +88,10 @@ static inline uint detectProcessorFeatures() } #elif defined(_X86_) features = 0; + if (IsProcessorFeaturePresent(PF_XMMI64_INSTRUCTIONS_AVAILABLE)) + features |= SSE2; + if (IsProcessorFeaturePresent(PF_SSE3_INSTRUCTIONS_AVAILABLE)) + features |= SSE3; return features; #endif features = 0; |
