/* * PROJECT: MKISOFS for the ReactOS Build System * LICENSE: GNU GPLv2 as published by the Free Software Foundation * AUTHORS: Colin Finck */ #ifndef __ALIGN_H #define __ALIGN_H #define ALIGN_LMASK (@CMAKE_SIZEOF_VOID_P@ - 1) #define xaligned(a, s) ((((UIntptr_t)(a)) & (s)) == 0) #define x2aligned(a, b, s) (((((UIntptr_t)(a)) | ((UIntptr_t)(b))) & (s)) == 0) #define laligned(a) xaligned(a, ALIGN_LMASK) #define l2aligned(a, b) x2aligned(a, b, ALIGN_LMASK) #endif