summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/src/dsp/lossless_enc_sse2.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-08-23 16:47:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-08-23 19:05:53 +0200
commite5e34f21fc36c8a162bb46e845bb3465cd434150 (patch)
tree604818f4a22ad5ab35c8defba0baedad40d203ed /thirdparty/libwebp/src/dsp/lossless_enc_sse2.c
parente95872eb7f4e94f8daac565d67020bb2260e92bd (diff)
libwebp: Sync with upstream 1.2.4
Changes: https://chromium.googlesource.com/webm/libwebp/+/1.2.4/NEWS
Diffstat (limited to 'thirdparty/libwebp/src/dsp/lossless_enc_sse2.c')
-rw-r--r--thirdparty/libwebp/src/dsp/lossless_enc_sse2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/libwebp/src/dsp/lossless_enc_sse2.c b/thirdparty/libwebp/src/dsp/lossless_enc_sse2.c
index b2f83b871c..948001a3d5 100644
--- a/thirdparty/libwebp/src/dsp/lossless_enc_sse2.c
+++ b/thirdparty/libwebp/src/dsp/lossless_enc_sse2.c
@@ -239,7 +239,7 @@ static void AddVectorEq_SSE2(const uint32_t* a, uint32_t* out, int size) {
static float CombinedShannonEntropy_SSE2(const int X[256], const int Y[256]) {
int i;
- double retval = 0.;
+ float retval = 0.f;
int sumX = 0, sumXY = 0;
const __m128i zero = _mm_setzero_si128();
@@ -273,7 +273,7 @@ static float CombinedShannonEntropy_SSE2(const int X[256], const int Y[256]) {
}
}
retval += VP8LFastSLog2(sumX) + VP8LFastSLog2(sumXY);
- return (float)retval;
+ return retval;
}
#else