Add new APFloat methods that return sign, exp, and mantissa of ieee float and double...
[oota-llvm.git] / include / llvm / ADT / APFloat.h
index 30d998fc3c1038f1461fa7be0a6a2dcfed6045c3..e0b6db1801d1cce9df4eb795e5dea992faae2dc1 100644 (file)
@@ -277,6 +277,13 @@ namespace llvm {
     /* Return an arbitrary integer value usable for hashing. */
     uint32_t getHashValue() const;
 
+    /// getIEEEFloatParts / getIEEEDoubleParts - Return exponent, significant,
+    /// and sign bit of an IEEE float / IEEE double value.
+    void getIEEEFloatParts(bool &Sign, uint32_t &Exp,
+                           uint32_t &Significant) const;
+    void getIEEEDoubleParts(bool &Sign, uint64_t &Exp,
+                            uint64_t &Significant) const;
+
   private:
 
     /* Trivial queries.  */