[Libreoffice-commits] core.git: sc/inc sc/qa sc/source vcl/backendtest wizards/source writerfilter/source
Andrea Gelmini (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 27 22:01:11 UTC 2021
sc/inc/arraysumfunctor.hxx | 2 +-
sc/qa/unit/functions_statistical.cxx | 2 +-
sc/source/core/tool/arraysumAVX.cxx | 4 ++--
sc/source/core/tool/arraysumAVX512.cxx | 4 ++--
sc/source/core/tool/arraysumSSE2.cxx | 4 ++--
vcl/backendtest/outputdevice/polypolygon.cxx | 4 ++--
vcl/backendtest/outputdevice/polypolygon_b2d.cxx | 4 ++--
wizards/source/sfdialogs/SF_DialogControl.xba | 6 +++---
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 +-
9 files changed, 16 insertions(+), 16 deletions(-)
New commits:
commit 05ff3d67d0e2e436406786c949eb7cfca107ba33
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Aug 27 19:45:16 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Aug 28 00:00:35 2021 +0200
Fix typos
Change-Id: Ie4e2ef5a884b51250863d3384d5e703232f31258
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121179
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
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
diff --git a/vcl/backendtest/outputdevice/polypolygon.cxx b/vcl/backendtest/outputdevice/polypolygon.cxx
index 642e0ce8fc61..36252485d913 100644
--- a/vcl/backendtest/outputdevice/polypolygon.cxx
+++ b/vcl/backendtest/outputdevice/polypolygon.cxx
@@ -79,10 +79,10 @@ Bitmap OutputDeviceTestPolyPolygon::setupIntersectingRectangles()
/*
The intersection between different rectangles has been
- acheived by stacking them on top of each other and decreasing and
+ achieved by stacking them on top of each other and decreasing and
increasing the top and bottom offset accordingly to the rectangle
keeping the left and the right offset intact which in turn coalesced
- them to each other helping in acheiving multiple intersecting rectangles.
+ them to each other helping in achieving multiple intersecting rectangles.
The desired color fill pattern is then achieved by setting the fill
color which in turn would fill the shape with the provided color
in accordance to the even-odd filling rule.
diff --git a/vcl/backendtest/outputdevice/polypolygon_b2d.cxx b/vcl/backendtest/outputdevice/polypolygon_b2d.cxx
index ef8ee6f0390e..c3aa44e78071 100644
--- a/vcl/backendtest/outputdevice/polypolygon_b2d.cxx
+++ b/vcl/backendtest/outputdevice/polypolygon_b2d.cxx
@@ -80,10 +80,10 @@ Bitmap OutputDeviceTestPolyPolygonB2D::setupIntersectingRectangles()
/*
The intersection between different rectangles has been
- acheived by stacking them on top of each other and decreasing and
+ achieved by stacking them on top of each other and decreasing and
increasing the top and bottom offset accordingly to the rectangle
keeping the left and the right offset intact which in turn coalesced
- them to each other helping in acheiving multiple intersecting rectangles.
+ them to each other helping in achieving multiple intersecting rectangles.
The desired color fill pattern is then achieved by setting the fill
color which in turn would fill the shape with the provided color
in accordance to the even-odd filling rule.
diff --git a/wizards/source/sfdialogs/SF_DialogControl.xba b/wizards/source/sfdialogs/SF_DialogControl.xba
index e6d6b8571af3..42270e32bcd3 100644
--- a/wizards/source/sfdialogs/SF_DialogControl.xba
+++ b/wizards/source/sfdialogs/SF_DialogControl.xba
@@ -1018,7 +1018,7 @@ Public Function SetTableData(Optional ByRef DataArray As Variant _
''' Example:
''' Widths := Array(1, 2)
''' means that the first column is half as wide as all the other columns
-''' When the argument is absent, the columns are evenly spreaded over the control
+''' When the argument is absent, the columns are evenly spread over the control
''' Alignments: the column's horizontal alignment as a string with length = number of columns.
''' Possible characters are:
''' L(EFT), C(ENTER), R(IGHT) or space (default behaviour)
@@ -1053,7 +1053,7 @@ Dim dRelativeWidth As Double ' Sum of Widths up to the number of columns
Dim dWidthFactor As Double ' Factor to apply to relative widths to get absolute column widths
Dim vDataRow As Variant ' A single row content in the tablecontrol
Dim vDataItem As Variant ' A single DataArray item
-Dim sAlign As String ' Column's hprizontal alignments (single chars: L, C, R, space)
+Dim sAlign As String ' Column's horizontal alignments (single chars: L, C, R, space)
Dim lAlign As Long ' com.sun.star.style.HorizontalAlignment.XXX
Dim i As Long, j As Long, k As Long
@@ -2081,4 +2081,4 @@ Private Function _Repr() As String
End Function ' SFDialogs.SF_DialogControl._Repr
REM ============================================ END OF SFDIALOGS.SF_DIALOGCONTROL
-</script:module>
\ No newline at end of file
+</script:module>
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index c6c423ea6517..c5f4b9a51968 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -2745,7 +2745,7 @@ void DomainMapper_Impl::ConvertHeaderFooterToTextFrame(bool bDynamicHeightTop, b
// tdf#143384 If the header/footer started with a table, convertToTextFrame could not
// convert the table, because it used createTextCursor() -which ignore tables-
// to set the conversion range.
- // This dummy property is set to make convertToTextFrame to use an other CreateTextCursor
+ // This dummy property is set to make convertToTextFrame to use another CreateTextCursor
// method that can be parameterized to not ignore tables.
aFrameProperties.push_back(comphelper::makePropertyValue(getPropertyName(PROP_CURSOR_NOT_IGNORE_TABLES_IN_HF), true));
More information about the Libreoffice-commits
mailing list