diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-06-24 04:06:23 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-24 04:06:23 +0000 |
commit | db045ab1532469551a56e5811e684920a6f7a10c (patch) | |
tree | c0d38d33f084e71025ecd1c7990e84fb14486ce4 /include/llvm/ADT | |
parent | cbfa1ca993363ca5c4dbf6c913abc957c584cbac (diff) | |
download | llvm-db045ab1532469551a56e5811e684920a6f7a10c.tar.gz llvm-db045ab1532469551a56e5811e684920a6f7a10c.tar.bz2 llvm-db045ab1532469551a56e5811e684920a6f7a10c.tar.xz |
[APFloat] Rename llvm::exponent_t => llvm::APFloat::ExponentType.
exponent_t is only used internally in APFloat and no exponent_t values are
exposed via the APFloat API. In light of such conditions it does not make any
sense to gum up the llvm namespace with said type. Plus it makes it clearer that
exponent_t is associated with APFloat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 638720940d..fdabdb85ca 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -21,9 +21,6 @@ namespace llvm { -/// A signed type to represent a floating point numbers unbiased exponent. -typedef signed short exponent_t; - struct fltSemantics; class APSInt; class StringRef; @@ -125,6 +122,9 @@ enum lostFraction { // Example of truncated bits: class APFloat { public: + /// A signed type to represent a floating point numbers unbiased exponent. + typedef signed short ExponentType; + /// \name Floating Point Semantics. /// @{ @@ -555,7 +555,7 @@ private: } significand; /// The signed unbiased exponent of the value. - exponent_t exponent; + ExponentType exponent; /// What kind of floating point number this is. /// |