Fix one check for AVX2
We should check for the haswell set of features here as well, as we do in the main switch. Not that there are supposed to be any processors with AVX2 without the full set though. Pick-to: 5.15 Change-Id: Ifa648d605a50748cff21ae0a0c75ae47f620d9c0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d9c40cf90e
commit
acc3f19038
@ -847,7 +847,7 @@ static void QT_FASTCALL intermediate_adder(uint *b, uint *end, const Intermediat
|
||||
{
|
||||
#if defined(QT_COMPILER_SUPPORTS_AVX2)
|
||||
extern void QT_FASTCALL intermediate_adder_avx2(uint *b, uint *end, const IntermediateBuffer &intermediate, int offset, int &fx, int fdx);
|
||||
if (qCpuHasFeature(AVX2))
|
||||
if (qCpuHasFeature(ArchHaswell))
|
||||
return intermediate_adder_avx2(b, end, intermediate, offset, fx, fdx);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user