From 96a798debb3cf487ec659540ee26d2127402afcf Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 22 May 2016 01:22:52 +0200 Subject: [PATCH] chunker: add a comment about a potential speedup --- borg/_chunker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/_chunker.c b/borg/_chunker.c index 2d1a03629..9ce5699f6 100644 --- a/borg/_chunker.c +++ b/borg/_chunker.c @@ -96,7 +96,7 @@ buzhash(const unsigned char *data, size_t len, const uint32_t *h) static uint32_t buzhash_update(uint32_t sum, unsigned char remove, unsigned char add, size_t len, const uint32_t *h) { - uint32_t lenmod = len & 0x1f; + uint32_t lenmod = len & 0x1f; /* Note: replace by constant to get small speedup */ return BARREL_SHIFT(sum, 1) ^ BARREL_SHIFT(h[remove], lenmod) ^ h[add]; }