1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavcodec
Claudio Freire 62dfe1d40d avcodec/aacenc_is: replace pow(x, 0.75) by x/sqrtf(sqrtf(x))
This is quite an accurate approximation; testing shows ~ 2ulp error in
the floating point result. Tested with FATE.

Alternatively, if one wants "full accuracy", one can use powf, or sqrt
instead of sqrtf. With powf, one gets 1 ulp error (theoretically should be 0, as
0.75 is exactly representable) on GNU libm, with sqrt, 0 ulp error.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>

Abstracted into pos_pow34 utility function

Signed-off-by: Claudio Freire <klaussfreire@gmail.com>
2016-01-14 00:38:22 -03:00
..
2016-01-13 23:49:27 +01:00
2015-12-19 09:32:53 -08:00
2015-12-19 09:32:53 -08:00
2016-01-06 16:43:06 +00:00
2016-01-10 16:28:14 +01:00
2016-01-10 16:28:14 +01:00
2015-12-26 20:29:22 -08:00
2015-12-18 18:08:00 +01:00
2015-12-20 21:31:55 +01:00
2016-01-06 16:43:06 +00:00
2016-01-10 12:49:35 +01:00
2015-12-21 11:14:02 +01:00
2015-12-22 12:54:23 +01:00
2016-01-06 16:43:06 +00:00