I was going through some code and I found one macro to align byte ptr
to DWORD boundry.
#define DWORD_ALIGN( base, ptr ) \
( (LPBYTE)(base) + ((((LPBYTE)(ptr) - (LPBYTE)(base)) + 3) & ~3) )
I am not able to understand how this works.
can anyone throw some light on this?
IS there any good material to read about this?
Start Free Trial