diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-08-17 23:54:12 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-08-17 23:54:12 +0000 |
commit | 104338913500d007996056ad092e195009883a84 (patch) | |
tree | 0f674f17b69ad01cde74c6e2cd8a0456b10fcf1e /include/llvm/Support | |
parent | 26653500bbbc21cd1c2d12ecc433fa439536b657 (diff) | |
download | external_llvm-104338913500d007996056ad092e195009883a84.zip external_llvm-104338913500d007996056ad092e195009883a84.tar.gz external_llvm-104338913500d007996056ad092e195009883a84.tar.bz2 |
include/llvm/Support/MathExtras.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 3dcb3a3..8209445 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -181,9 +181,9 @@ inline double BitsToDouble(uint64_t Bits) { // BitsToFloat - This function takes a 32-bit integer and returns the bit // equivalent float. -inline float BitsToFloat(unsigned Bits) { +inline float BitsToFloat(uint32_t Bits) { union { - unsigned I; + uint32_t I; float F; } T; T.I = Bits; @@ -203,9 +203,9 @@ inline uint64_t DoubleToBits(double Double) { // FloatToBits - This function takes a float and returns the bit // equivalent 32-bit integer. -inline unsigned FloatToBits(float Float) { +inline uint32_t FloatToBits(float Float) { union { - unsigned I; + uint32_t I; float F; } T; T.F = Float; |