projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1329cb8
)
make this 64-bit safe
author
Chris Lattner
<sabre@nondot.org>
Sat, 26 Jan 2008 19:50:30 +0000
(19:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 26 Jan 2008 19:50:30 +0000
(19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46402
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/MathExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/MathExtras.h
b/include/llvm/Support/MathExtras.h
index 773fbf954f411c31a6833e5fb5f3aa78055a3445..56d112ef99835d07ae5d1eead89770ef0f4d0f4e 100644
(file)
--- 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 u
nsigned MinAlign(unsigned A, unsigned
B) {
+static inline u
int64_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