aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbis_data.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-09 18:50:28 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-17 08:12:41 -0800
commit07a8fbaa553205b496b68a62cb7bf7a968d0281b (patch)
treeb7fe0c3c8623dcb358c242c2066aded57ee352d0 /libavcodec/vorbis_data.c
parent39f8c7961dcd530e88d13c600145097106647d2e (diff)
downloadffmpeg-07a8fbaa553205b496b68a62cb7bf7a968d0281b.tar.gz
lavc/nellymoserenc: avoid wasteful pow
exp2 suffices here. Some trivial speedup is done in addition here by reusing results. This retains accuracy, and in particular results in identical values with GNU libm + gcc/clang. sample benchmark (Haswell, GNU/Linux): proposed : 424160 decicycles in pow_table, 512 runs, 0 skips exp2 only: 1262093 decicycles in pow_table, 512 runs, 0 skips old : 2849085 decicycles in pow_table, 512 runs, 0 skips Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/vorbis_data.c')
0 files changed, 0 insertions, 0 deletions