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
..
2015-09-18 12:41:29 -03:00
2015-09-29 11:10:37 +02:00
2015-06-05 19:12:58 +02:00
2015-11-23 23:03:32 +11:00
2015-06-19 02:25:48 +02:00
2015-12-15 14:16:28 +01:00
2015-12-15 14:16:28 +01:00
2015-10-28 04:23:14 -05:00
2015-10-28 09:38:21 -05:00
2015-08-28 16:04:27 +02:00
2015-10-05 19:30:20 +02:00
2015-08-19 16:15:13 +00:00
2015-10-28 23:05:31 -04:00
2015-10-03 13:45:37 +02:00
2015-10-27 23:16:09 -04:00
2015-08-22 10:07:05 -07:00
2015-10-16 19:13:38 -03:00
2015-10-16 19:13:38 -03:00
2015-03-12 02:15:28 +01:00
2015-10-18 15:17:58 -04:00
2015-10-18 15:17:58 -04:00
2015-10-15 22:32:58 -04:00
2015-11-05 19:28:19 +01:00
2015-08-24 10:40:24 +02:00
2015-09-10 23:53:05 +02:00
2015-09-10 23:53:05 +02:00
2015-06-06 18:21:01 +02:00
2015-11-15 03:47:09 +01:00
2015-05-31 23:59:48 +02:00
2015-10-28 04:23:14 -05:00
2015-10-28 04:23:14 -05:00
2015-10-16 03:24:36 +02:00
2015-12-02 18:31:56 -05:00
2015-10-18 15:17:58 -04:00
2015-10-16 19:13:38 -03:00
2015-10-14 14:01:11 +02:00
2015-10-14 14:01:11 +02:00
2015-03-24 01:14:31 +01:00
2015-03-24 01:14:31 +01:00
2015-12-18 04:04:14 +01:00
2015-12-16 07:56:54 -05:00
2015-11-01 19:35:01 -05:00
2015-10-14 20:23:58 +02:00
2015-10-14 20:23:58 +02:00
2015-11-02 17:40:49 +01:00
2015-10-16 17:18:39 -04:00
2015-06-20 03:39:09 -03:00
2015-06-03 22:50:53 +02:00
2015-10-21 00:24:58 +02:00
2015-10-21 00:24:58 +02:00
2015-12-08 17:50:40 +01:00
2015-10-03 09:52:39 +02:00
2015-09-05 18:07:20 +02:00
2015-09-05 18:07:20 +02:00
2015-11-23 18:30:25 -08:00
2015-03-17 23:53:33 +02:00
2015-12-01 13:26:12 +01: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
2015-11-26 09:20:46 -05:00
2015-08-28 16:04:27 +02:00
2015-09-17 18:58:01 +02:00
2015-06-26 14:02:35 +02:00
2015-12-15 14:16:28 +01:00
2015-12-09 17:39:38 +01:00
2015-10-30 13:42:04 -04:00
2015-08-28 16:04:27 +02:00
2015-08-28 16:04:27 +02:00
2015-07-13 21:54:15 -03:00
2015-11-18 22:05:16 +01:00
2015-11-18 22:05:16 +01:00
2015-11-23 10:55:15 +01:00
2015-10-31 10:40:54 -04: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
2015-10-09 04:12:57 -05:00
2015-07-21 16:55:39 +02:00
2015-04-07 20:46:25 +02:00
2015-03-30 04:37:42 +02:00
2015-09-17 10:31:43 +02:00
2015-09-12 13:03:04 +02:00
2015-09-17 10:31:43 +02:00
2015-10-23 08:41:16 -04:00
2015-12-17 08:12:41 -08:00
2015-12-02 21:38:11 +01:00
2015-05-26 18:31:53 +02:00
2015-10-18 15:17:58 -04:00
2015-10-16 19:13:38 -03:00
2015-08-12 00:14:14 +02:00
2015-10-28 21:42:15 -04:00
2015-10-18 15:17:58 -04:00
2015-10-18 15:17:58 -04:00
2015-08-28 16:04:27 +02:00
2015-04-30 17:38:41 -03:00
2015-11-08 15:04:05 +01:00
2015-12-11 13:39:21 +01:00
2015-12-04 14:49:35 +01:00
2015-07-21 23:10:44 +02:00
2015-07-21 23:10:44 +02:00
2015-10-14 23:02:35 +02:00
2015-12-07 17:25:51 +01:00
2015-12-07 11:39:28 +01:00
2015-12-03 04:09:48 +01:00
2015-03-27 04:44:58 +01:00
2015-10-25 12:45:10 -04:00
2015-10-25 17:28:47 +01:00
2015-10-18 15:17:58 -04:00
2015-08-18 15:57:20 -04:00
2015-12-15 14:16:28 +01:00
2015-10-30 13:47:28 -04:00
2015-11-22 14:29:09 +00:00
2015-11-22 14:29:09 +00:00