Commit 0c3eaeb1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Increase alignment to uintmax_t to cater for 32bit userlands on

64bit processors.
parent b703b6b3
......@@ -130,7 +130,7 @@ void VSM_common_ageupdate(const struct vsm_sc *sc);
* Pointer aligment magic
*/
#define PALGN (sizeof(void *) - 1) /* size of alignment */
#define PALGN (sizeof(uintmax_t) - 1) /* size of alignment */
#define PAOK(p) (((uintptr_t)(p) & PALGN) == 0) /* is aligned */
#define PRNDDN(p) ((uintptr_t)(p) & ~PALGN) /* Round down */
#define PRNDUP(p) (((uintptr_t)(p) + PALGN) & ~PALGN) /* Round up */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment