diff options
author | Qiyu8 <fangchunlin@huawei.com> | 2021-01-27 11:26:07 +0800 |
---|---|---|
committer | Qiyu8 <fangchunlin@huawei.com> | 2021-01-27 11:26:07 +0800 |
commit | 9b2a8dee2185bcecb27ae06172082a8046b66527 (patch) | |
tree | b4191c0a38e32fc42a3481d76c26a12cc0fd693f /numpy | |
parent | d244aa9bae95d6061feaec4a9873ef4992c26245 (diff) | |
download | numpy-9b2a8dee2185bcecb27ae06172082a8046b66527.tar.gz |
use more accurate words.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/common/simd/avx2/arithmetic.h | 2 | ||||
-rw-r--r-- | numpy/core/src/common/simd/avx512/arithmetic.h | 2 | ||||
-rw-r--r-- | numpy/core/src/common/simd/neon/arithmetic.h | 2 | ||||
-rw-r--r-- | numpy/core/src/common/simd/sse/arithmetic.h | 2 | ||||
-rw-r--r-- | numpy/core/src/common/simd/vsx/arithmetic.h | 2 | ||||
-rw-r--r-- | numpy/core/tests/test_simd.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/src/common/simd/avx2/arithmetic.h b/numpy/core/src/common/simd/avx2/arithmetic.h index c4c5f2093..4b8258759 100644 --- a/numpy/core/src/common/simd/avx2/arithmetic.h +++ b/numpy/core/src/common/simd/avx2/arithmetic.h @@ -157,7 +157,7 @@ NPY_FINLINE double npyv_sum_f64(npyv_f64 a) return _mm_cvtsd_f64(sum); } -// extend sum across vector +// expand the source vector and performs sum reduce NPY_FINLINE npy_uint16 npyv_sumup_u8(npyv_u8 a) { __m256i four = _mm256_sad_epu8(a, _mm256_setzero_si256()); diff --git a/numpy/core/src/common/simd/avx512/arithmetic.h b/numpy/core/src/common/simd/avx512/arithmetic.h index a6e448bae..450da7ea5 100644 --- a/numpy/core/src/common/simd/avx512/arithmetic.h +++ b/numpy/core/src/common/simd/avx512/arithmetic.h @@ -192,7 +192,7 @@ NPY_FINLINE __m512i npyv_mul_u8(__m512i a, __m512i b) } #endif -// extend sum across vector +// expand the source vector and performs sum reduce NPY_FINLINE npy_uint16 npyv_sumup_u8(npyv_u8 a) { #ifdef NPY_HAVE_AVX512BW diff --git a/numpy/core/src/common/simd/neon/arithmetic.h b/numpy/core/src/common/simd/neon/arithmetic.h index af34299a0..69a49f571 100644 --- a/numpy/core/src/common/simd/neon/arithmetic.h +++ b/numpy/core/src/common/simd/neon/arithmetic.h @@ -159,7 +159,7 @@ } #endif -// extend sum across vector +// expand the source vector and performs sum reduce #if NPY_SIMD_F64 #define npyv_sumup_u8 vaddlvq_u8 #define npyv_sumup_u16 vaddlvq_u16 diff --git a/numpy/core/src/common/simd/sse/arithmetic.h b/numpy/core/src/common/simd/sse/arithmetic.h index fcb0a1716..c21b7da2d 100644 --- a/numpy/core/src/common/simd/sse/arithmetic.h +++ b/numpy/core/src/common/simd/sse/arithmetic.h @@ -188,7 +188,7 @@ NPY_FINLINE double npyv_sum_f64(npyv_f64 a) #endif } -// extend sum across vector +// expand the source vector and performs sum reduce NPY_FINLINE npy_uint16 npyv_sumup_u8(npyv_u8 a) { __m128i two = _mm_sad_epu8(a, _mm_setzero_si128()); diff --git a/numpy/core/src/common/simd/vsx/arithmetic.h b/numpy/core/src/common/simd/vsx/arithmetic.h index 339677857..7c4e32f27 100644 --- a/numpy/core/src/common/simd/vsx/arithmetic.h +++ b/numpy/core/src/common/simd/vsx/arithmetic.h @@ -142,7 +142,7 @@ NPY_FINLINE double npyv_sum_f64(npyv_f64 a) return vec_extract(a, 0) + vec_extract(a, 1); } -// extend sum across vector +// expand the source vector and performs sum reduce NPY_FINLINE npy_uint16 npyv_sumup_u8(npyv_u8 a) { const npyv_u32 zero = npyv_zero_u32(); diff --git a/numpy/core/tests/test_simd.py b/numpy/core/tests/test_simd.py index 3efd328da..1d1a111be 100644 --- a/numpy/core/tests/test_simd.py +++ b/numpy/core/tests/test_simd.py @@ -750,7 +750,7 @@ class _SIMD_ALL(_Test_Utility): def test_arithmetic_reduce_sumup(self): """ - Test overflow protect reduce sumup intrinics: + Test extend reduce sum intrinics: npyv_sumup_##sfx """ if self.sfx not in ("u8", "u16"): |