ffmpeg/libavutil
Ganesh Ajjanagadde e29db08cf7 lavu/libm: add exp10 support
exp10 is a function available in GNU libm. Looks like no other common
libm has it. This adds support for it to FFmpeg.

There are essentially 2 ways of handling the fallback:
1. Using pow(10, x)
2. Using exp2(M_LOG2_10 * x).

First one represents a Pareto improvement, with no speed or accuracy
regression anywhere, but speed improvement limited to GNU libm.

Second one represents a slight accuracy loss (relative error ~ 1e-13)
for non GNU libm. Speedup of > 2x is obtained on non GNU libm platforms,
~30% on GNU libm. These are "average case numbers", another benefit is
the lack of triggering of the well-known terrible worst case paths
through pow.

Based on reviews, second one chosen. Comment added accordingly.

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-23 09:22:59 -08:00
..
2014-04-07 01:31:02 +02:00
2015-12-15 14:16:28 +01:00
2015-12-15 14:16:28 +01:00
2015-10-28 09:38:21 -05:00
2015-08-19 16:15:13 +00:00
2015-08-22 10:07:05 -07:00
2014-08-05 01:54:47 +02:00
2015-10-28 04:23:14 -05:00
2015-10-28 04:23:14 -05:00
2014-07-12 22:33:27 +02:00
2014-07-12 22:33:27 +02:00
2015-11-01 19:35:01 -05:00
2014-04-29 13:24:11 +02:00
2015-09-05 18:07:20 +02:00
2015-09-05 18:07:20 +02:00
2015-12-07 10:43:43 -08:00
2015-10-11 18:03:10 -04:00
2015-12-19 09:35:34 -08:00
2015-12-23 09:22:59 -08:00
2014-10-11 12:15:26 +02:00
2015-12-15 14:16:28 +01:00
2015-11-18 22:05:16 +01:00
2015-11-18 22:05:16 +01:00
2015-12-07 20:28:30 +01:00
2015-10-17 01:16:50 -07:00
2015-11-07 16:04:09 +01:00
2014-08-05 21:05:52 +02:00
2015-05-26 18:31:53 +02:00
2015-12-03 04:09:48 +01:00
2013-11-22 17:16:11 +01:00
2015-12-15 14:16:28 +01:00