NetBSD/lib/libm
eadler 736570df7c Fix signed overflow in atan2
As a component of atan2(y, x), the case of x == 1.0 is farmed out to
atan(y). The current implementation of this comparison is vulnerable
to signed integer underflow (that is, undefined behavior), and it's
performed in a somewhat more complicated way than it need be. Change
it to not be quite so cute, rather directly comparing the high/low
bits of x to the specific IEEE-754 bit pattern that encodes 1.0.

ok martin@ pgoyette@ maya@
obtained from FreeBSD
2018-03-10 09:44:47 +00:00
..
arch use named initializers 2018-01-25 03:54:21 +00:00
compat Drop superfluous ; in __warn_references 2017-05-13 02:58:03 +00:00
compiler_rt Long double complex multiplication and division helpers are needed on 2016-02-27 19:06:56 +00:00
complex Mention tgmath cproj, creal, cabs 2017-09-27 09:20:27 +00:00
gen Remove redundant null check before free() 2017-03-07 11:15:08 +00:00
man Restore CAVEATS section unmodified. 2017-09-28 15:03:18 +00:00
noieee_src avoid negative shift 2018-03-06 01:14:41 +00:00
softfloat provide a common softfloat fenv implemenation and use it for softfloat builds. 2017-03-22 23:11:07 +00:00
src Fix signed overflow in atan2 2018-03-10 09:44:47 +00:00
Makefile Add man page link for hypotl.3 2017-09-26 16:01:58 +00:00
shlib_version Mention wanting to remove isnanf too, reword 2017-09-26 18:03:30 +00:00