forked from OSchip/llvm-project
add a nice predicate to check to see if nan
llvm-svn: 43304
This commit is contained in:
parent
b67e596d86
commit
b6ed689722
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue