summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-04-27 12:13:13 -0600
committerGitHub <noreply@github.com>2021-04-27 12:13:13 -0600
commit694f5c704736e99c0e92204dab797b1430d2424c (patch)
tree76f3ee95fdcefbc47928109d931f1510754c5205
parent967274c4cb8b67d4ecc0fbe2f0e17359cc6e1c97 (diff)
parentd1767bca66eb0f3cce14d1ab586ec2be9f7fab9e (diff)
downloadnumpy-694f5c704736e99c0e92204dab797b1430d2424c.tar.gz
Merge pull request #18856 from HowJMay/typo
MAINT: Fix the typo "implment"
-rw-r--r--numpy/core/src/common/simd/avx2/arithmetic.h6
-rw-r--r--numpy/core/src/common/simd/avx512/arithmetic.h6
-rw-r--r--numpy/core/src/common/simd/sse/arithmetic.h6
-rw-r--r--numpy/core/src/multiarray/convert_datatype.c4
-rw-r--r--numpy/core/src/multiarray/convert_datatype.h2
5 files changed, 12 insertions, 12 deletions
diff --git a/numpy/core/src/common/simd/avx2/arithmetic.h b/numpy/core/src/common/simd/avx2/arithmetic.h
index 7cd5a0ea6..b1e297988 100644
--- a/numpy/core/src/common/simd/avx2/arithmetic.h
+++ b/numpy/core/src/common/simd/avx2/arithmetic.h
@@ -26,7 +26,7 @@
#define npyv_adds_s8 _mm256_adds_epi8
#define npyv_adds_u16 _mm256_adds_epu16
#define npyv_adds_s16 _mm256_adds_epi16
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Subtraction
@@ -48,7 +48,7 @@
#define npyv_subs_s8 _mm256_subs_epi8
#define npyv_subs_u16 _mm256_subs_epu16
#define npyv_subs_s16 _mm256_subs_epi16
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Multiplication
@@ -64,7 +64,7 @@
#define npyv_mul_f64 _mm256_mul_pd
// saturated
-// TODO: after implment Packs intrins
+// TODO: after implement Packs intrins
/***************************
* Integer Division
diff --git a/numpy/core/src/common/simd/avx512/arithmetic.h b/numpy/core/src/common/simd/avx512/arithmetic.h
index 29e1af7e8..8a2790e93 100644
--- a/numpy/core/src/common/simd/avx512/arithmetic.h
+++ b/numpy/core/src/common/simd/avx512/arithmetic.h
@@ -39,7 +39,7 @@
NPYV_IMPL_AVX512_FROM_AVX2_2ARG(npyv_adds_u16, _mm256_adds_epu16)
NPYV_IMPL_AVX512_FROM_AVX2_2ARG(npyv_adds_s16, _mm256_adds_epi16)
#endif
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Subtraction
@@ -73,7 +73,7 @@
NPYV_IMPL_AVX512_FROM_AVX2_2ARG(npyv_subs_u16, _mm256_subs_epu16)
NPYV_IMPL_AVX512_FROM_AVX2_2ARG(npyv_subs_s16, _mm256_subs_epi16)
#endif
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Multiplication
@@ -104,7 +104,7 @@ NPY_FINLINE __m512i npyv_mul_u8(__m512i a, __m512i b)
#define npyv_mul_f64 _mm512_mul_pd
// saturated
-// TODO: after implment Packs intrins
+// TODO: after implement Packs intrins
/***************************
* Integer Division
diff --git a/numpy/core/src/common/simd/sse/arithmetic.h b/numpy/core/src/common/simd/sse/arithmetic.h
index a1ec88f56..1b02a4107 100644
--- a/numpy/core/src/common/simd/sse/arithmetic.h
+++ b/numpy/core/src/common/simd/sse/arithmetic.h
@@ -25,7 +25,7 @@
#define npyv_adds_s8 _mm_adds_epi8
#define npyv_adds_u16 _mm_adds_epu16
#define npyv_adds_s16 _mm_adds_epi16
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Subtraction
@@ -47,7 +47,7 @@
#define npyv_subs_s8 _mm_subs_epi8
#define npyv_subs_u16 _mm_subs_epu16
#define npyv_subs_s16 _mm_subs_epi16
-// TODO: rest, after implment Packs intrins
+// TODO: rest, after implement Packs intrins
/***************************
* Multiplication
@@ -83,7 +83,7 @@ NPY_FINLINE __m128i npyv_mul_u8(__m128i a, __m128i b)
#define npyv_mul_f64 _mm_mul_pd
// saturated
-// TODO: after implment Packs intrins
+// TODO: after implement Packs intrins
/***************************
* Integer Division
diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c
index 18179f253..8dca184cb 100644
--- a/numpy/core/src/multiarray/convert_datatype.c
+++ b/numpy/core/src/multiarray/convert_datatype.c
@@ -1888,7 +1888,7 @@ PyArray_ConvertToCommonType(PyObject *op, int *retn)
* @return 0 on success -1 on failure.
*/
NPY_NO_EXPORT int
-PyArray_AddCastingImplmentation(PyBoundArrayMethodObject *meth)
+PyArray_AddCastingImplementation(PyBoundArrayMethodObject *meth)
{
if (meth->method->nin != 1 || meth->method->nout != 1) {
PyErr_SetString(PyExc_TypeError,
@@ -1955,7 +1955,7 @@ PyArray_AddCastingImplementation_FromSpec(PyArrayMethod_Spec *spec, int private)
if (meth == NULL) {
return -1;
}
- int res = PyArray_AddCastingImplmentation(meth);
+ int res = PyArray_AddCastingImplementation(meth);
Py_DECREF(meth);
if (res < 0) {
return -1;
diff --git a/numpy/core/src/multiarray/convert_datatype.h b/numpy/core/src/multiarray/convert_datatype.h
index 14218edee..33517b8ca 100644
--- a/numpy/core/src/multiarray/convert_datatype.h
+++ b/numpy/core/src/multiarray/convert_datatype.h
@@ -57,7 +57,7 @@ PyArray_FindConcatenationDescriptor(
npy_intp n, PyArrayObject **arrays, PyObject *requested_dtype);
NPY_NO_EXPORT int
-PyArray_AddCastingImplmentation(PyBoundArrayMethodObject *meth);
+PyArray_AddCastingImplementation(PyBoundArrayMethodObject *meth);
NPY_NO_EXPORT int
PyArray_AddCastingImplementation_FromSpec(PyArrayMethod_Spec *spec, int private);