Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpcls: fix build on compilers without AVX512-VPOPCNT
This commit adds extra checks around the AVX-512 vpopcnt instruction enabling, ensuring that in the function where the ISA is enabled the compiler has also indicated its support for the ISA. This is achieved by checking the __AVX512VPOPCNTDQ__ define, which the compiler sets if it is capable of handling the vpopcnt instruction. If the compiler is not capable of handling vpopcnt, we fall back to the emulated vpopcnt implementation. Reported-by: Ian Stokes <[email protected]> Fixes: 1e31489 ("dpcls-avx512: Enable avx512 vector popcount instruction.") Signed-off-by: Harry van Haaren <[email protected]> Signed-off-by: Ian Stokes <[email protected]>
- Loading branch information