projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db5f0d
)
Add support for detecting SSE2 and SSE3 on WinCE
author
Thiago Macieira
<thiago.macieira@intel.com>
Thu, 22 Mar 2012 22:34:41 +0000
(19:34 -0300)
committer
Qt by Nokia
<qt-info@nokia.com>
Mon, 26 Mar 2012 16:39:29 +0000
(18:39 +0200)
Change-Id: Ic26ba2073d1f1d7e12338811b86f9b99ea8f1eac
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qsimd.cpp
patch
|
blob
|
history
diff --git
a/src/corelib/tools/qsimd.cpp
b/src/corelib/tools/qsimd.cpp
index
0d816bd
..
5f54ae7
100644
(file)
--- 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;