[llvm-commits] [llvm] r46402 - /llvm/trunk/include/llvm/Support/MathExtras.h

Chris Lattner sabre at nondot.org
Sat Jan 26 11:50:30 PST 2008


Author: lattner
Date: Sat Jan 26 13:50:30 2008
New Revision: 46402

URL: http://llvm.org/viewvc/llvm-project?rev=46402&view=rev
Log:
make this 64-bit safe

Modified:
    llvm/trunk/include/llvm/Support/MathExtras.h

Modified: llvm/trunk/include/llvm/Support/MathExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MathExtras.h?rev=46402&r1=46401&r2=46402&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/MathExtras.h (original)
+++ llvm/trunk/include/llvm/Support/MathExtras.h Sat Jan 26 13:50:30 2008
@@ -360,11 +360,11 @@
 
 /// MinAlign - A and B are either alignments or offsets.  Return the minimum
 /// alignment that may be assumed after adding the two together.
-static inline unsigned MinAlign(unsigned A, unsigned B) {
+static inline uint64_t MinAlign(uint64_t A, uint64_t B) {
   // The largest power of 2 that divides both A and B.
   return (A | B) & -(A | B);
 }
-
+  
 } // End llvm namespace
 
 #endif





More information about the llvm-commits mailing list