From 8f6f8c5ddee260953af4cfb7e5ffe349d4f27e3e Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 23 Jul 2014 13:59:33 -0700 Subject: [PATCH] remove the !WEBP_REFERENCE_IMPLEMENTATION tweak in Put8x8uv There's no speed diff, so better remove it altogether Reported in https://code.google.com/p/webp/issues/detail?id=215 Change-Id: I991330de18bec340029d6df5fed0dfb4337e4662 --- src/dsp/dec.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/dsp/dec.c b/src/dsp/dec.c index 927f83a9..65a2a885 100644 --- a/src/dsp/dec.c +++ b/src/dsp/dec.c @@ -417,14 +417,9 @@ static void HE8uv(uint8_t *dst) { // horizontal // helper for chroma-DC predictions static WEBP_INLINE void Put8x8uv(uint8_t value, uint8_t* dst) { int j; -#ifndef WEBP_REFERENCE_IMPLEMENTATION - const uint64_t v = (uint64_t)value * 0x0101010101010101ULL; for (j = 0; j < 8; ++j) { - *(uint64_t*)(dst + j * BPS) = v; + memset(dst + j * BPS, value, 8); } -#else - for (j = 0; j < 8; ++j) memset(dst + j * BPS, value, 8); -#endif } static void DC8uv(uint8_t *dst) { // DC