util: allow align64() to do alignments >= 4Gb
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21757>
This commit is contained in:
committed by
Marge Bot
parent
9a058f6b4c
commit
b801724352
+2
-2
@@ -697,9 +697,9 @@ align(int value, int alignment)
|
||||
}
|
||||
|
||||
static inline uint64_t
|
||||
align64(uint64_t value, unsigned alignment)
|
||||
align64(uint64_t value, uint64_t alignment)
|
||||
{
|
||||
return (value + alignment - 1) & ~((uint64_t)alignment - 1);
|
||||
return (value + alignment - 1) & ~(alignment - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user