ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.03k stars 406 forks source link

Fix syntax error for macro on VS. #216

Closed TheSharpOwl closed 2 years ago

TheSharpOwl commented 2 years ago

I have used Visual Studio 2017 solution but I changed WIndows SDK version from 8.1 to 10.9 (it should not matter but just wanted to note) and I got a syntax error in the following 2 lines: 217 and 218 in Simd\src\Simd\SimdAvx512bwResizerArea.cpp

__m512i s0 = _mm512_permutexvar_epi64(K64_PERMUTE_FOR_UNPACK, Load<false, true>(src0 + i, srcMask));
__m512i s1 = _mm512_permutexvar_epi64(K64_PERMUTE_FOR_UNPACK, Load<false, true>(src1 + i, srcMask));

because the macro according to VS does this expansion in this situation: image

so I fixed it by adding an extra pair or parentheses and now it builds fine.