diff options
author | Alberto Delmás <[email protected]> | 2012-09-03 17:32:01 +0200 |
---|---|---|
committer | Kostya Shishkov <[email protected]> | 2012-09-06 20:44:04 +0200 |
commit | 9699b3a2d7ebc62ae58c4e70997190f5f7b45d27 (patch) | |
tree | 7c4d1aa78b53c3edf474eb52d7ca331d751186bc /libavresample/x86/audio_convert_init.c | |
parent | 6ceef07b21a6b828d98f25edefb66e322a628667 (diff) |
mss12: avoid unnecessary division in arith*_get_bit()
That division can be replaced with a comparison:
((c->value - c->low) << 1) + 1 >= range
By expanding 'range' definition and simplifying this inequation we obtain
the final expression.
Suggested by Michael Niedermayer <[email protected]>
Signed-off-by: Kostya Shishkov <[email protected]>
Diffstat (limited to 'libavresample/x86/audio_convert_init.c')
0 files changed, 0 insertions, 0 deletions