diff options
author | Dale Johannesen <dalej@apple.com> | 2007-08-24 05:08:11 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-08-24 05:08:11 +0000 |
commit | 41b1f011ebe82c3933bb130decc12e2b990c4b7c (patch) | |
tree | 179a63b611038b92e1bdd58e18ac7730e210aeb5 /include/llvm/ADT | |
parent | 1f323c2a86593ee5e728b01d6eaec0e708c51467 (diff) | |
download | external_llvm-41b1f011ebe82c3933bb130decc12e2b990c4b7c.zip external_llvm-41b1f011ebe82c3933bb130decc12e2b990c4b7c.tar.gz external_llvm-41b1f011ebe82c3933bb130decc12e2b990c4b7c.tar.bz2 |
Revised per review feedback from previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 5387b48..695c99a 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -194,6 +194,11 @@ namespace llvm { /* Bitwise comparison for equality (QNaNs compare equal, 0!=-0). */ bool operator==(const APFloat &) const; + /* Inversion of the preceding. */ + inline bool operator!=(const APFloat &RHS) const { + return !((*this)==RHS); + } + /* Simple queries. */ fltCategory getCategory() const { return category; } const fltSemantics &getSemantics() const { return *semantics; } |