[libav-devel] [PATCH] dnxhddec: avoid a branch in 10-bit decode_dct_block()

2011-07-22 Thread Mans Rullgard
The minimum weight value is 32 so this test can be skipped for the 10-bit case. Overall speedup 3-4%. Signed-off-by: Mans Rullgard m...@mansr.com --- libavcodec/dnxhddec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c

Re: [libav-devel] [PATCH] dnxhddec: avoid a branch in 10-bit decode_dct_block()

2011-07-22 Thread Ronald S. Bultje
Hi, On Fri, Jul 22, 2011 at 3:37 PM, Mans Rullgard m...@mansr.com wrote: The minimum weight value is 32 so this test can be skipped for the 10-bit case.  Overall speedup 3-4%. Signed-off-by: Mans Rullgard m...@mansr.com ---  libavcodec/dnxhddec.c |    2 +-  1 files changed, 1