summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-27 21:35:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-27 21:35:42 +0000
commit99ebfa5f6c6f24fdce4cdd3de1adbc4a282db337 (patch)
treebc25075b79ae47b04c8ae7d8c884d39878a97185 /include
parent2688bcbee188c1b5071f3a2b38923cd06013f490 (diff)
downloadllvm-99ebfa5f6c6f24fdce4cdd3de1adbc4a282db337.tar.gz
llvm-99ebfa5f6c6f24fdce4cdd3de1adbc4a282db337.tar.bz2
llvm-99ebfa5f6c6f24fdce4cdd3de1adbc4a282db337.tar.xz
Add new APFloat methods that return sign, exp, and mantissa of ieee float and double values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/APFloat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index 30d998fc3c..e0b6db1801 100644
--- a/include/llvm/ADT/APFloat.h
+++ b/include/llvm/ADT/APFloat.h
@@ -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. */