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:
parent
7db5f0dd6a
commit
15e9b77cac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user