mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
9a058f6b4c
commit
b801724352
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue