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:
12a3f83
)
add a predicate.
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Jun 2008 18:09:04 +0000
(18:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 1 Jun 2008 18:09:04 +0000
(18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51842
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APFloat.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APFloat.h
b/include/llvm/ADT/APFloat.h
index 411d8add25f6f2e686603303a41c2f26c55d7e33..b3d3a061e5fcdfca08f85fefc1bfa4eaf5f2a4cf 100644
(file)
--- a/
include/llvm/ADT/APFloat.h
+++ b/
include/llvm/ADT/APFloat.h
@@
-244,6
+244,7
@@
namespace llvm {
bool isZero() const { return category == fcZero; }
bool isNonZero() const { return category != fcZero; }
bool isNaN() const { return category == fcNaN; }
+ bool isInfinity() const { return category == fcInfinity; }
bool isNegative() const { return sign; }
bool isPosZero() const { return isZero() && !isNegative(); }
bool isNegZero() const { return isZero() && isNegative(); }