aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/MathExtras.h
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
commitdc97d4cb2f0eb99a8143272128b76ab45db4ab09 (patch)
tree5100b0b4164d0de84d46a0c64d5a5b0a5bad2566 /include/llvm/Support/MathExtras.h
parent1329cb8d8992c34365fcc2ac0447356708157dfb (diff)
downloadexternal_llvm-dc97d4cb2f0eb99a8143272128b76ab45db4ab09.zip
external_llvm-dc97d4cb2f0eb99a8143272128b76ab45db4ab09.tar.gz
external_llvm-dc97d4cb2f0eb99a8143272128b76ab45db4ab09.tar.bz2
make this 64-bit safe
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 773fbf9..56d112e 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/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