summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MathExtras.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-17 23:54:12 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-17 23:54:12 +0000
commit104338913500d007996056ad092e195009883a84 (patch)
tree0f674f17b69ad01cde74c6e2cd8a0456b10fcf1e /include/llvm/Support/MathExtras.h
parent26653500bbbc21cd1c2d12ecc433fa439536b657 (diff)
downloadllvm-104338913500d007996056ad092e195009883a84.tar.gz
llvm-104338913500d007996056ad092e195009883a84.tar.bz2
llvm-104338913500d007996056ad092e195009883a84.tar.xz
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/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 3dcb3a3972..8209445f15 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;