util/math: change ROUND_DOWN_TO to return a uint64_t
For 32-bit builds. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10622>
This commit is contained in:
parent
4d80ec8fcf
commit
75831d5fce
|
@ -737,8 +737,8 @@ ALIGN_NPOT(uintptr_t value, int32_t alignment)
|
|||
*
|
||||
* \sa ALIGN()
|
||||
*/
|
||||
static inline uintptr_t
|
||||
ROUND_DOWN_TO(uintptr_t value, int32_t alignment)
|
||||
static inline uint64_t
|
||||
ROUND_DOWN_TO(uint64_t value, int32_t alignment)
|
||||
{
|
||||
assert(util_is_power_of_two_nonzero(alignment));
|
||||
return ((value) & ~(alignment - 1));
|
||||
|
|
Loading…
Reference in New Issue