util: Add align_uintptr and use it treewide to replace ALIGN that works on size_t and uintptr_t

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26866>
This commit is contained in:
Yonggang Luo
2023-06-29 11:54:55 +08:00
committed by Marge Bot
parent aa8ea0f1b9
commit d6c258d9ee
11 changed files with 36 additions and 21 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ u_printf_impl(FILE *out, const char *buffer, size_t buffer_size,
free(print_str);
buf_pos += arg_size;
buf_pos = ALIGN(buf_pos, 4);
buf_pos = align_uintptr(buf_pos, 4);
}
/* print remaining */