[llvm] r184345 - [APFloat] Expose isSmallest/isLargest as public methods.

Michael Gottesman mgottesman at apple.com
Wed Jun 19 13:31:54 PDT 2013


Author: mgottesman
Date: Wed Jun 19 15:31:54 2013
New Revision: 184345

URL: http://llvm.org/viewvc/llvm-project?rev=184345&view=rev
Log:
[APFloat] Expose isSmallest/isLargest as public methods.

I have had several requests to expose these two methods as public for various
potential optimizations.

Modified:
    llvm/trunk/include/llvm/ADT/APFloat.h

Modified: llvm/trunk/include/llvm/ADT/APFloat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=184345&r1=184344&r2=184345&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Wed Jun 19 15:31:54 2013
@@ -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
   /// @{
 





More information about the llvm-commits mailing list