Commit e23f9b9 1 parent 7669099 commit e23f9b9 Copy full SHA for e23f9b9
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace crc32c {
13
13
// Returns the smallest number >= the given number that is evenly divided by N.
14
14
//
15
15
// N must be a power of two.
16
- template <int N>
16
+ template <uint64_t N>
17
17
constexpr inline uintptr_t RoundUp (uintptr_t pointer) {
18
18
static_assert ((N & (N - 1 )) == 0 , " N must be a power of two" );
19
19
return (pointer + (N - 1 )) & ~(N - 1 );
@@ -22,7 +22,7 @@ constexpr inline uintptr_t RoundUp(uintptr_t pointer) {
22
22
// Returns the smallest address >= the given address that is aligned to N bytes.
23
23
//
24
24
// N must be a power of two.
25
- template <int N>
25
+ template <uint64_t N>
26
26
constexpr inline const uint8_t * RoundUp (const uint8_t * pointer) {
27
27
static_assert ((N & (N - 1 )) == 0 , " N must be a power of two" );
28
28
return reinterpret_cast <uint8_t *>(
You can’t perform that action at this time.
0 commit comments