diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-07-03 11:16:00 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 11:16:00 -0600 |
commit | e69faef03428b82f5651a5fb521610ddea2bd22a (patch) | |
tree | bca058aab6c4b5f688ca8e5d65b6c0984bdc3075 /numpy/core | |
parent | d5cac2c1991daa32a1423634e980e9b98035ebef (diff) | |
parent | 820cb97bcad0d171c9efbb8fb8d7e987a0514aa9 (diff) | |
download | numpy-e69faef03428b82f5651a5fb521610ddea2bd22a.tar.gz |
Merge pull request #19394 from seiko2plus/issue_19255
BUG, SIMD: Fix infinite loop during count non-zero on GCC-11
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/multiarray/item_selection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c index fb354ce54..2b8ea9e79 100644 --- a/numpy/core/src/multiarray/item_selection.c +++ b/numpy/core/src/multiarray/item_selection.c @@ -2131,7 +2131,7 @@ count_nonzero_bytes_384(const npy_uint64 * w) #if NPY_SIMD /* Count the zero bytes between `*d` and `end`, updating `*d` to point to where to keep counting from. */ -static NPY_INLINE NPY_GCC_OPT_3 npyv_u8 +NPY_FINLINE NPY_GCC_OPT_3 npyv_u8 count_zero_bytes_u8(const npy_uint8 **d, const npy_uint8 *end, npy_uint8 max_count) { const npyv_u8 vone = npyv_setall_u8(1); @@ -2150,7 +2150,7 @@ count_zero_bytes_u8(const npy_uint8 **d, const npy_uint8 *end, npy_uint8 max_cou return vsum8; } -static NPY_INLINE NPY_GCC_OPT_3 npyv_u16x2 +NPY_FINLINE NPY_GCC_OPT_3 npyv_u16x2 count_zero_bytes_u16(const npy_uint8 **d, const npy_uint8 *end, npy_uint16 max_count) { npyv_u16x2 vsum16; |