projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a565a
)
APFloat: Use isDenormal instead of hand-rolled code to check for denormals.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Sat, 1 Jun 2013 11:26:33 +0000
(11:26 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Sat, 1 Jun 2013 11:26:33 +0000
(11:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183072
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index 4efbaf7a90eb15a464c8f497b5bc37636ed80bc0..16586fbc9e8063c109371ad2fbef80252ef4a2c9 100644
(file)
--- a/
lib/Support/APFloat.cpp
+++ b/
lib/Support/APFloat.cpp
@@
-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 &&