mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Fix PR1234 by working around a compiler bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -187,8 +187,7 @@ struct NextPowerOfTwoH<N, false> {
|
|||||||
enum {
|
enum {
|
||||||
// We could just use NextVal = N+1, but this converges faster. N|(N-1) sets
|
// We could just use NextVal = N+1, but this converges faster. N|(N-1) sets
|
||||||
// the right-most zero bits to one all at once, e.g. 0b0011000 -> 0b0011111.
|
// the right-most zero bits to one all at once, e.g. 0b0011000 -> 0b0011111.
|
||||||
NextVal = (N|(N-1)) + 1,
|
Val = NextPowerOfTwo<(N|(N-1)) + 1>::Val
|
||||||
Val = NextPowerOfTwo<NextVal>::Val
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user