ffmpeg/libavutil
Ganesh Ajjanagadde 275aca8fba configure+libm.h: add hypot emulation
It is known that the naive sqrt(x*x + y*y) approach for computing the
hypotenuse suffers from overflow and accuracy issues, see e.g
http://www.johndcook.com/blog/2010/06/02/whats-so-hard-about-finding-a-hypotenuse/.
This adds hypot support to FFmpeg, a C99 function.

On platforms without hypot, this patch does a reaonable workaround, that
although not as accurate as GNU libm, is readable and does not suffer
from the overflow issue. Improvements can be made separately.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-11-21 08:51:49 -05:00
..
2014-04-07 01:31:02 +02: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-10-11 18:03:10 -04:00
2015-11-21 08:51:49 -05:00
2014-10-11 12:15:26 +02:00
2015-11-18 22:05:16 +01:00
2015-11-18 22:05:16 +01:00
2013-05-13 21:42:37 +02: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
2013-06-15 18:54:01 -03:00
2013-06-02 11:27:19 +02:00
2014-05-26 11:40:15 +02:00
2014-05-26 11:40:15 +02:00
2015-10-26 15:05:26 +01:00
2013-11-22 17:16:11 +01:00
2015-11-18 22:05:16 +01:00