diff options
author | Steve Kargl <sgk@troutmask.apl.washington.edu> | 2021-02-08 19:45:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-02-08 19:48:43 +0000 |
commit | 93fc67896550548f91b307dbe3053f11db5d4a8a (patch) | |
tree | 729bc97df0443e65a8f371fcc4b6452a7c7255c6 /sys/dev/nvme/nvme_private.h | |
parent | b5770470276268acef21368b3e77a325df883500 (diff) | |
download | src-93fc67896550548f91b307dbe3053f11db5d4a8a.tar.gz src-93fc67896550548f91b307dbe3053f11db5d4a8a.zip |
Fix incorrect powf(3) result with x near 1 and |y| much larger than 1
This adjusts the check to trigger overflow/underflow to a slightly lower
value.
Before: powf(9.999995e-01, -1.342177e+08) -> inf
After: powf(9.999995e-01, -1.342177e+08) -> 1.858724e+31
MFC after: 1 week
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
0 files changed, 0 insertions, 0 deletions