diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 20:31:54 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 20:31:54 +0000 |
commit | c896020dd8d6c2f25f5bf7eb9191fd4e72407015 (patch) | |
tree | e534c00f9b45bfeae9c728c056ee6ed830c69752 /include | |
parent | 7ab184a2a1cbf5b5b340d663e07550659438ed7c (diff) | |
download | llvm-c896020dd8d6c2f25f5bf7eb9191fd4e72407015.tar.gz llvm-c896020dd8d6c2f25f5bf7eb9191fd4e72407015.tar.bz2 llvm-c896020dd8d6c2f25f5bf7eb9191fd4e72407015.tar.xz |
[APFloat] Expose isSmallest/isLargest as public methods.
I have had several requests to expose these two methods as public for various
potential optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index ffd8975042..712cf91f6d 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -398,6 +398,14 @@ public: bool isPosZero() const { return isZero() && !isNegative(); } bool isNegZero() const { return isZero() && isNegative(); } + /// Returns true if and only if the number has the smallest possible non-zero + /// magnitude in the current semantics. + bool isSmallest() const; + + /// Returns true if and only if the number has the largest possible finite + /// magnitude in the current semantics. + bool isLargest() const; + /// @} APFloat &operator=(const APFloat &); @@ -494,18 +502,6 @@ private: /// @} - /// \name Special value queries only useful internally to APFloat - /// @{ - - /// Returns true if and only if the number has the smallest possible non-zero - /// magnitude in the current semantics. - bool isSmallest() const; - /// Returns true if and only if the number has the largest possible finite - /// magnitude in the current semantics. - bool isLargest() const; - - /// @} - /// \name Miscellany /// @{ |