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:
Samuel Pitoiset 2021-05-04 17:08:58 +02:00 committed by Marge Bot
parent 4d80ec8fcf
commit 75831d5fce
1 changed files with 2 additions and 2 deletions

View File

@ -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));