From 104338913500d007996056ad092e195009883a84 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Wed, 17 Aug 2005 23:54:12 +0000 Subject: include/llvm/Support/MathExtras.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22846 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/MathExtras.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/llvm/Support/MathExtras.h') 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; -- cgit v1.2.3