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 | d3b51fd17024569cc53ae02b9a4f80857930e08b (patch) | |
tree | 179a63b611038b92e1bdd58e18ac7730e210aeb5 /include/llvm/ADT/APFloat.h | |
parent | ada530b4f552da1d122be0c6dbc936e689fc16fd (diff) |
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/APFloat.h')
-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 5387b48d59..695c99a107 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; } |