Re: [FFmpeg-devel] [PATCH 1/2] configure+libm.h: add hypot emulation

2015-11-14 Thread Ganesh Ajjanagadde
On Sat, Nov 14, 2015 at 4:48 PM, Paul B Mahol wrote: > On 11/14/15, Ganesh Ajjanagadde wrote: >> 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-f

Re: [FFmpeg-devel] [PATCH 1/2] configure+libm.h: add hypot emulation

2015-11-14 Thread Ganesh Ajjanagadde
On Sat, Nov 14, 2015 at 4:48 PM, Paul B Mahol wrote: > On 11/14/15, Ganesh Ajjanagadde wrote: >> 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-f

Re: [FFmpeg-devel] [PATCH 1/2] configure+libm.h: add hypot emulation

2015-11-14 Thread Paul B Mahol
On 11/14/15, Ganesh Ajjanagadde wrote: > 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,

[FFmpeg-devel] [PATCH 1/2] configure+libm.h: add hypot emulation

2015-11-14 Thread Ganesh Ajjanagadde
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, thi