1
0
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:
Chris Lattner 2007-10-24 18:54:28 +00:00
parent 78e6eb6e2a
commit ef90913394

View File

@ -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(); }