Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG, SIMD: Fix direactive check for AVX512BW of intrinsics npyv_tobits_* #17971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions numpy/core/src/common/simd/avx512/conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ NPY_FINLINE npy_uint64 npyv_tobits_b8(npyv_b8 a)
{
#ifdef NPY_HAVE_AVX512BW_MASK
return (npy_uint64)_cvtmask64_u64(a);
#elif NPY_HAVE_AVX512BW
#elif defined(NPY_HAVE_AVX512BW)
return (npy_uint64)a;
#else
int mask_lo = _mm256_movemask_epi8(npyv512_lower_si256(a));
Expand All @@ -68,7 +68,7 @@ NPY_FINLINE npy_uint64 npyv_tobits_b16(npyv_b16 a)
{
#ifdef NPY_HAVE_AVX512BW_MASK
return (npy_uint32)_cvtmask32_u32(a);
#elif NPY_HAVE_AVX512BW
#elif defined(NPY_HAVE_AVX512BW)
return (npy_uint32)a;
#else
__m256i pack = _mm256_packs_epi16(
Expand Down