On Mon, Mar 13, 2023 at 08:28:57AM +0000, Ni, Ray wrote: > > > > +#define IS_ALIGNED(x, y) ((((UINTN)(x) & (y - 1)) == 0)) > > 1. Can you use the existing macro ALIGN_POINTER() defined in Base.h?
Having copies of this all over the tree is indeed a bad idea. See https://edk2.groups.io/g/devel/message/100695 which adds this and a few more commonly used macros to Base.h. Can we get that reviewed and merged please? thanks & take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#101086): https://edk2.groups.io/g/devel/message/101086 Mute This Topic: https://groups.io/mt/97524218/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-