mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
APFloat: Use isDenormal instead of hand-rolled code to check for denormals.
llvm-svn: 183072
This commit is contained in:
parent
6730241022
commit
0116e00b91
@ -3683,7 +3683,7 @@ bool APFloat::getExactInverse(APFloat *inv) const {
|
||||
|
||||
// Avoid multiplication with a denormal, it is not safe on all platforms and
|
||||
// may be slower than a normal division.
|
||||
if (reciprocal.significandMSB() + 1 < reciprocal.semantics->precision)
|
||||
if (reciprocal.isDenormal())
|
||||
return false;
|
||||
|
||||
assert(reciprocal.category == fcNormal &&
|
||||
|
Loading…
Reference in New Issue
Block a user