# HG changeset patch # User conrad # Date 1279921561 0 # Node ID 0d81ba00151a5b6a5f227841e23aa9b9f8ac8be0 # Parent 35ee666e4496e04dcbb8827e1d4b7f3825742d64 vp56's arith decoder's code_word is only 16 bits, no need for unsigned long diff -r 35ee666e4496 -r 0d81ba00151a vp56.h --- a/vp56.h Fri Jul 23 21:42:35 2010 +0000 +++ b/vp56.h Fri Jul 23 21:46:01 2010 +0000 @@ -56,7 +56,7 @@ bits left) in order to eliminate a negate in cache refilling */ const uint8_t *buffer; const uint8_t *end; - unsigned long code_word; + unsigned int code_word; } VP56RangeCoder; typedef struct { @@ -196,7 +196,7 @@ /* Don't put c->high in a local variable; if we do that, gcc gets * the stupids and turns the code below into a branch again. */ int bits = c->bits; - unsigned long code_word = c->code_word; + unsigned int code_word = c->code_word; unsigned int low = 1 + (((c->high - 1) * prob) >> 8); unsigned int low_shift = low << 8; int bit = code_word >= low_shift;