summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2021-08-27 19:45:16 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-08-28 00:00:35 +0200
commit05ff3d67d0e2e436406786c949eb7cfca107ba33 (patch)
tree2e7999b62a605bc079c4e480c20bede93c1e1d42 /sc/source
parentfe6f33f7818eb8245b2b54543e96b9ff989c69b9 (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/source')
-rw-r--r--sc/source/core/tool/arraysumAVX.cxx4
-rw-r--r--sc/source/core/tool/arraysumAVX512.cxx4
-rw-r--r--sc/source/core/tool/arraysumSSE2.cxx4
3 files changed, 6 insertions, 6 deletions
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