summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-26 19:50:30 +0000
committerChris Lattner <sabre@nondot.org>2008-01-26 19:50:30 +0000
commit1472c7fe76d59900a71b861bb0adcd331d417d3d (patch)
tree84fa6cd023ad639d56f617cd8de650720fd847d6
parente30e33af4ff2f939d1fb5e0871fa57c9e91cfe12 (diff)
downloadbcm5719-llvm-1472c7fe76d59900a71b861bb0adcd331d417d3d.tar.gz
bcm5719-llvm-1472c7fe76d59900a71b861bb0adcd331d417d3d.zip
make this 64-bit safe
llvm-svn: 46402
-rw-r--r--llvm/include/llvm/Support/MathExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index 773fbf954f4..56d112ef998 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/include/llvm/Support/MathExtras.h
@@ -360,11 +360,11 @@ int IsInf(double d);
/// 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
OpenPOWER on IntegriCloud