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:
975de81
)
add a nice predicate to check to see if nan
author
Chris Lattner
<sabre@nondot.org>
Wed, 24 Oct 2007 18:54:28 +0000
(18:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 24 Oct 2007 18:54:28 +0000
(18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43304
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 9037ef5f727337d98e9335a6416b2c5374c5b2ee..b605faab312e723ce2241defcf2744cf4a6b8106 100644
(file)
--- a/
include/llvm/ADT/APFloat.h
+++ b/
include/llvm/ADT/APFloat.h
@@
-232,6
+232,7
@@
namespace llvm {
const fltSemantics &getSemantics() const { return *semantics; }
bool isZero() const { return category == fcZero; }
bool isNonZero() const { return category != fcZero; }
+ bool isNaN() const { return category == fcNaN; }
bool isNegative() const { return sign; }
bool isPosZero() const { return isZero() && !isNegative(); }
bool isNegZero() const { return isZero() && isNegative(); }