Re: signed overflow in atan2

2018-02-14 Thread Tom Cosgrove
>>> Eitan Adler 14-Feb-18 08:09 >>> > > Hi all, > > you may want the following patch. Previous discussion: > https://lists.freebsd.org/pipermail/freebsd-numerics/2018-February/thread.html > > Original submission: https://github.com/freebsd/freebsd/pull/130 > > > === > > As a component of atan2(y, x

signed overflow in atan2

2018-02-14 Thread Eitan Adler
Hi all, you may want the following patch. Previous discussion: https://lists.freebsd.org/pipermail/freebsd-numerics/2018-February/thread.html Original submission: https://github.com/freebsd/freebsd/pull/130 === As a component of atan2(y, x), the case of x == 1.0 is farmed out to atan(y). The c