mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
add a nice predicate to check to see if nan
llvm-svn: 43304
This commit is contained in:
parent
78e6eb6e2a
commit
ef90913394
@ -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…
x
Reference in New Issue
Block a user