]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix incorrect powf(3) result with x near 1 and |y| much larger than 1
authorSteve Kargl <sgk@troutmask.apl.washington.edu>
Mon, 8 Feb 2021 19:45:30 +0000 (20:45 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 8 Feb 2021 19:48:43 +0000 (20:48 +0100)
commit93fc67896550548f91b307dbe3053f11db5d4a8a
tree729bc97df0443e65a8f371fcc4b6452a7c7255c6
parentb5770470276268acef21368b3e77a325df883500
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
lib/msun/src/e_powf.c