Add support for detecting SSE2 and SSE3 on WinCE

Change-Id: Ic26ba2073d1f1d7e12338811b86f9b99ea8f1eac
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Thiago Macieira 2012-03-22 19:34:41 -03:00 committed by Qt by Nokia
parent 7db5f0dd6a
commit 15e9b77cac

View File

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