diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-01 18:09:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-01 18:09:04 +0000 |
commit | 1015b59ababd8a560a505064d19d58287f778830 (patch) | |
tree | 92d47755ad96f3aba264d39b3b284e966aceaba4 | |
parent | 246fceda0a698b2fa889e5713f706560cd4f2b55 (diff) | |
download | external_llvm-1015b59ababd8a560a505064d19d58287f778830.zip external_llvm-1015b59ababd8a560a505064d19d58287f778830.tar.gz external_llvm-1015b59ababd8a560a505064d19d58287f778830.tar.bz2 |
add a predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51842 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APFloat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 411d8ad..b3d3a06 100644 --- 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(); } |