aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/swfdec.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-30 20:02:11 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2016-01-04 17:23:24 -0800
commit43624a669b706168989a3b1ac608943f8cb208d1 (patch)
tree51d487a949ce4a741adad531d500101fc94a65ca /libavformat/swfdec.c
parent7cc01c25727a96eaaa0c177234b626e47c8ea491 (diff)
downloadffmpeg-43624a669b706168989a3b1ac608943f8cb208d1.tar.gz
lavc/pcm_tablegen: slight speedup of table generation
This gets rid of some branches to speed up table generation slightly (impact higher on mulaw than alaw). Tables are identical to before, tested with FATE. Sample benchmark (Haswell, GNU/Linux+gcc): old: 313494 decicycles in build_alaw_table, 4094 runs, 2 skips 315959 decicycles in build_alaw_table, 8190 runs, 2 skips 323599 decicycles in build_ulaw_table, 4095 runs, 1 skips 318849 decicycles in build_ulaw_table, 8188 runs, 4 skips new: 261902 decicycles in build_alaw_table, 4096 runs, 0 skips 266519 decicycles in build_alaw_table, 8192 runs, 0 skips 209657 decicycles in build_ulaw_table, 4096 runs, 0 skips 232656 decicycles in build_ulaw_table, 8192 runs, 0 skips Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavformat/swfdec.c')
0 files changed, 0 insertions, 0 deletions