Add APFloat::getExactInverse.
[oota-llvm.git] / include / llvm / ADT / APFloat.h
index ca4138b825a64373050152c59e18bba9752b8366..21b8c86d1d5b644ced60fb47727e7a79d1106f24 100644 (file)
@@ -353,6 +353,10 @@ namespace llvm {
                   unsigned FormatPrecision = 0,
                   unsigned FormatMaxPadding = 3) const;
 
+    /// getExactInverse - If this value has an exact multiplicative inverse,
+    /// store it in inv and return true.
+    bool getExactInverse(APFloat *inv) const;
+
   private:
 
     /* Trivial queries.  */