summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-03 16:36:00 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-09-03 21:14:44 +0200
commit7d0e9168daba1411c15315a4d5f481ed1e5dc356 (patch)
tree508c4543b7888b02988d8084ebde03f8d8350462 /external
parent29560c4bdfcb94daab898277ed73baabcd0e639a (diff)
fix offsets in our SSSE3 Skia functions (tdf#136326)
'src' is uint32_t, so that extra '*4' was wrong. Change-Id: Ie0628a72bd4f7eb3122e4b1d67b6bb759f74bc46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102007 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'external')
-rw-r--r--external/skia/source/skia_opts_internal.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/skia/source/skia_opts_internal.hxx b/external/skia/source/skia_opts_internal.hxx
index 3f9d79c22352..7b81c20da271 100644
--- a/external/skia/source/skia_opts_internal.hxx
+++ b/external/skia/source/skia_opts_internal.hxx
@@ -41,7 +41,7 @@ inline void RGB1_to_RGB(uint8_t dst[], const uint32_t* src, int count) {
// Store 4 pixels.
_mm_storeu_si128((__m128i*) dst, rgb);
- src += 4*4;
+ src += 4;
dst += 4*3;
count -= 4;
}
@@ -62,7 +62,7 @@ inline void RGB1_to_gray_fast(uint8_t dst[], const uint32_t* src, int count) {
// Store 4 pixels.
_mm_storeu_si128((__m128i*) dst, rgb);
- src += 4*4;
+ src += 4;
dst += 4;
count -= 4;
}