diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2021-08-27 19:45:16 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-08-28 00:00:35 +0200 |
commit | 05ff3d67d0e2e436406786c949eb7cfca107ba33 (patch) | |
tree | 2e7999b62a605bc079c4e480c20bede93c1e1d42 /sc | |
parent | fe6f33f7818eb8245b2b54543e96b9ff989c69b9 (diff) |
Fix typos
Change-Id: Ie4e2ef5a884b51250863d3384d5e703232f31258
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121179
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/arraysumfunctor.hxx | 2 | ||||
-rw-r--r-- | sc/qa/unit/functions_statistical.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/arraysumAVX.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/arraysumAVX512.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/arraysumSSE2.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/sc/inc/arraysumfunctor.hxx b/sc/inc/arraysumfunctor.hxx index ee6d4c0fca5c..ecd428e9f037 100644 --- a/sc/inc/arraysumfunctor.hxx +++ b/sc/inc/arraysumfunctor.hxx @@ -69,7 +69,7 @@ static inline KahanSum executeUnrolled(size_t& i, size_t nSize, const double* pC return 0.0; } -/* Available methos */ +/* Available methods */ SC_DLLPUBLIC KahanSum executeAVX512F(size_t& i, size_t nSize, const double* pCurrent); SC_DLLPUBLIC KahanSum executeAVX(size_t& i, size_t nSize, const double* pCurrent); SC_DLLPUBLIC KahanSum executeSSE2(size_t& i, size_t nSize, const double* pCurrent); diff --git a/sc/qa/unit/functions_statistical.cxx b/sc/qa/unit/functions_statistical.cxx index e82d762d88ee..2e489d26dd0d 100644 --- a/sc/qa/unit/functions_statistical.cxx +++ b/sc/qa/unit/functions_statistical.cxx @@ -31,7 +31,7 @@ StatisticalFunctionsTest::StatisticalFunctionsTest(): void StatisticalFunctionsTest::testIntrinsicSums() { - // Checkout SSE2, AVX and AVX512 opperations + // Checkout SSE2, AVX and AVX512 operations // Needs exactly 9 terms double summands[9] = { 0, 1, 2, 3, 4, 10, 20, 2, -1 }; double* pCurrent = summands; diff --git a/sc/source/core/tool/arraysumAVX.cxx b/sc/source/core/tool/arraysumAVX.cxx index af12a08a8cf5..49407b95dfb6 100644 --- a/sc/source/core/tool/arraysumAVX.cxx +++ b/sc/source/core/tool/arraysumAVX.cxx @@ -29,7 +29,7 @@ static inline void sumAVX(__m256d& sum, __m256d& err, const __m256d& value) __m256d asum = _mm256_and_pd(sum, ANNULATE_SIGN_BIT); // Absolute value of the value to add __m256d avalue = _mm256_and_pd(value, ANNULATE_SIGN_BIT); - // Comaprate the absolute values sum >= value + // Compare the absolute values sum >= value __m256d mask = _mm256_cmp_pd(asum, avalue, _CMP_GE_OQ); // The following code has this form ( a - t + b) // Case 1: a = sum b = value @@ -51,7 +51,7 @@ KahanSum executeAVX(size_t& i, size_t nSize, const double* pCurrent) // Make sure we don't fall out of bounds. // This works by sums of 8 terms. // So the 8'th term is i+7 - // If we iterate untill nSize won't fall out of bounds + // If we iterate until nSize won't fall out of bounds if (nSize > i + 7) { // Setup sums and errors as 0 diff --git a/sc/source/core/tool/arraysumAVX512.cxx b/sc/source/core/tool/arraysumAVX512.cxx index 55764849edfb..0fa49c6bccc8 100644 --- a/sc/source/core/tool/arraysumAVX512.cxx +++ b/sc/source/core/tool/arraysumAVX512.cxx @@ -43,7 +43,7 @@ static inline void sumAVX512(__m512d& sum, __m512d& err, const __m512d& value) __m512d asum = _mm512_abs_pd(sum); // Absolute value of the value to add __m512d avalue = _mm512_abs_pd(value); - // Comaprate the absolute values sum >= value + // Compare the absolute values sum >= value __mmask8 mask = _mm512_cmp_pd_mask(avalue, asum, _CMP_GE_OQ); // The following code has this form ( a - t + b) // Case 1: a = sum b = value @@ -65,7 +65,7 @@ KahanSum executeAVX512F(size_t& i, size_t nSize, const double* pCurrent) // Make sure we don't fall out of bounds. // This works by sums of 8 terms. // So the 8'th term is i+7 - // If we iterate untill nSize won't fall out of bounds + // If we iterate until nSize won't fall out of bounds if (nSize > i + 7) { // Setup sums and errors as 0 diff --git a/sc/source/core/tool/arraysumSSE2.cxx b/sc/source/core/tool/arraysumSSE2.cxx index 4f6a4b47a11d..e2ab945acc4a 100644 --- a/sc/source/core/tool/arraysumSSE2.cxx +++ b/sc/source/core/tool/arraysumSSE2.cxx @@ -31,7 +31,7 @@ static inline void sumSSE2(__m128d& sum, __m128d& err, const __m128d& value) __m128d asum = _mm_and_pd(sum, ANNULATE_SIGN_BIT); // Absolute value of the value to add __m128d avalue = _mm_and_pd(value, ANNULATE_SIGN_BIT); - // Comaprate the absolute values sum >= value + // Compare the absolute values sum >= value __m128d mask = _mm_cmpge_pd(asum, avalue); // The following code has this form ( a - t + b) // Case 1: a = sum b = value @@ -53,7 +53,7 @@ KahanSum executeSSE2(size_t& i, size_t nSize, const double* pCurrent) // Make sure we don't fall out of bounds. // This works by sums of 8 terms. // So the 8'th term is i+7 - // If we iterate untill nSize won't fall out of bounds + // If we iterate until nSize won't fall out of bounds if (nSize > i + 7) { // Setup sums and errors as 0 |