FFmpeg/libavcodec
Ganesh Ajjanagadde 07a8fbaa55 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>
2015-12-17 08:12:41 -08:00
..
2015-12-04 02:35:42 +01:00
2015-12-15 22:45:15 -05:00
2015-11-30 18:29:57 -05:00
2015-11-30 10:58:46 -05:00
2015-12-11 10:22:09 -05:00
2015-12-07 16:10:51 +01:00
2015-12-05 21:11:52 +01:00
2015-12-05 21:11:52 +01:00
2015-11-30 23:31:12 +01:00
2015-12-07 09:38:59 +01:00
2015-12-07 09:25:02 +01:00