[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

Jim Laskey jlaskey at apple.com
Wed Aug 17 16:54:24 PDT 2005



Changes in directory llvm/include/llvm/Support:

MathExtras.h updated: 1.24 -> 1.25
---
Log message:

include/llvm/Support/MathExtras.h

---
Diffs of the changes:  (+4 -4)

 MathExtras.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.24 llvm/include/llvm/Support/MathExtras.h:1.25
--- llvm/include/llvm/Support/MathExtras.h:1.24	Wed Aug 17 12:27:47 2005
+++ llvm/include/llvm/Support/MathExtras.h	Wed Aug 17 18:54:12 2005
@@ -181,9 +181,9 @@
 
 // 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 @@
 
 // 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;






More information about the llvm-commits mailing list