]> git.sesse.net Git - ffmpeg/commit
lavc/dsd_tablegen: speed up table generation
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Tue, 29 Dec 2015 16:18:44 +0000 (08:18 -0800)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 30 Dec 2015 16:45:19 +0000 (08:45 -0800)
commitb272c3a5aabeafb37d5aeecc4524e8a8aeecf9da
tree8961827080f56c292c29dd27e2bf730c3529ea37
parent29bc293297a6edb44114818b3485f50c137d428d
lavc/dsd_tablegen: speed up table generation

Tables are bit identical.
Sample benchmark (Haswell, GNU/Linux+gcc):
old:
 814485 decicycles in dsd_ctables_tableinit,     512 runs,      0 skips

new:
 356808 decicycles in dsd_ctable_tableinit,     512 runs,      0 skips

Binary size should essentially be identical, and is in fact identical on
the configuration I tested on.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/dsd_tablegen.h