summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/isp
diff options
context:
space:
mode:
authoreadler <eadler@NetBSD.org>2018-03-10 09:44:47 +0000
committereadler <eadler@NetBSD.org>2018-03-10 09:44:47 +0000
commitbb8d31f415a9cfc59beda6fb21e02dbae38b9af1 (patch)
treee4b729d2e8dc63e10e4cb31adf802bd0d4858ab4 /sys/dev/microcode/isp
parentc2fc4f5d1e80e95d0660d4f5d0ef19c6d5b50722 (diff)
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
Diffstat (limited to 'sys/dev/microcode/isp')
0 files changed, 0 insertions, 0 deletions