diff options
author | Qiyu8 <fangchunlin@huawei.com> | 2020-12-16 11:40:44 +0800 |
---|---|---|
committer | Qiyu8 <fangchunlin@huawei.com> | 2020-12-16 11:40:44 +0800 |
commit | e826c1f2616c72b023145fb4842bfbd1b60ddb3f (patch) | |
tree | 370ab2917892bc5ba8ce2f646e391d17a8d0f4d4 | |
parent | a209ef9e4e3265efa3ba1c0f090c501fce82845a (diff) | |
download | numpy-e826c1f2616c72b023145fb4842bfbd1b60ddb3f.tar.gz |
add NPY_GCC_OPT_3 to all count_zero functions.
-rw-r--r-- | numpy/core/src/multiarray/item_selection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c index 34ccc3da2..abe7f4516 100644 --- a/numpy/core/src/multiarray/item_selection.c +++ b/numpy/core/src/multiarray/item_selection.c @@ -2150,7 +2150,7 @@ count_zero_bytes_u8(const npy_uint8 **d, const npy_uint8 *end) return vsum8; } -static NPY_INLINE npyv_u16 +static NPY_INLINE NPY_GCC_OPT_3 npyv_u16 count_zero_bytes_u16(const npy_uint8 **d, const npy_uint8 *end) { npyv_u16 vsum16 = npyv_zero_u16(); @@ -2164,7 +2164,7 @@ count_zero_bytes_u16(const npy_uint8 **d, const npy_uint8 *end) return vsum16; } -static NPY_INLINE npyv_u32 +static NPY_INLINE NPY_GCC_OPT_3 npyv_u32 count_zero_bytes_u32(const npy_uint8 **d, const npy_uint8 *end) { npyv_u32 vsum32 = npyv_zero_u32(); @@ -2178,7 +2178,7 @@ count_zero_bytes_u32(const npy_uint8 **d, const npy_uint8 *end) return vsum32; } -static NPY_INLINE npy_intp +static NPY_INLINE NPY_GCC_OPT_3 npy_intp count_nonzero_bytes(const npy_uint8 *d, npy_uintp unrollx) { npy_intp zero_count = 0; |