8000 Merge pull request #17971 from seiko2plus/issue_17969 · numpy/numpy@91d9bbe · GitHub
[go: up one dir, main page]

Skip to content

Commit 91d9bbe

Browse files
authored
Merge pull request #17971 from seiko2plus/issue_17969
BUG, SIMD: Fix direactive check for AVX512BW of intrinsics npyv_tobits_*
2 parents 26f8b11 + 6edf451 commit 91d9bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/src/common/simd/avx512/conversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ NPY_FINLINE npy_uint64 npyv_tobits_b8(npyv_b8 a)
5656
{
5757
#ifdef NPY_HAVE_AVX512BW_MASK
5858
return (npy_uint64)_cvtmask64_u64(a);
59-
#elif NPY_HAVE_AVX512BW
59+
#elif defined(NPY_HAVE_AVX512BW)
6060
return (npy_uint64)a;
6161
#else
6262
int mask_lo = _mm256_movemask_epi8(npyv512_lower_si256(a));
@@ -68,7 +68,7 @@ NPY_FINLINE npy_uint64 npyv_tobits_b16(npyv_b16 a)
6868
{
6969
#ifdef NPY_HAVE_AVX512BW_MASK
7070
return (npy_uint32)_cvtmask32_u32(a);
71-
#elif NPY_HAVE_AVX512BW
71+
#elif defined(NPY_HAVE_AVX512BW)
7272
return (npy_uint32)a;
7373
#else
7474
__m256i pack = _mm256_packs_epi16(

0 commit comments

Comments
 (0)
0