From c4855ca2496db7f7f159ee087cecd86303c38773 Mon Sep 17 00:00:00 2001 From: Jyrki Alakuijala Date: Fri, 26 Jun 2015 14:24:59 +0000 Subject: [PATCH] lossless: Inlining add literal this is a simple speedup of about 1-2 % Change-Id: I0c7b01c0a69f4aeaf363ffda05a28871f1def696 --- src/enc/backward_references.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/enc/backward_references.c b/src/enc/backward_references.c index b1affb1e..4293d023 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -320,9 +320,9 @@ static int HashChainFindCopy(const VP8LHashChain* const p, return (best_length >= MIN_LENGTH); } -static void AddSingleLiteral(uint32_t pixel, int use_color_cache, - VP8LColorCache* const hashers, - VP8LBackwardRefs* const refs) { +static WEBP_INLINE void AddSingleLiteral(uint32_t pixel, int use_color_cache, + VP8LColorCache* const hashers, + VP8LBackwardRefs* const refs) { PixOrCopy v; if (use_color_cache && VP8LColorCacheContains(hashers, pixel)) { // push pixel as a PixOrCopyCreateCacheIdx pixel