Assume I want to reserve 8 bytes
on the stack and I also want to make sure current stack pointer
is 8 byte aligned. I have seen some codes that assure current sp
is 8 bye aligned using this logic:
sp = sp & -8;
They AND
it with the amount they are going to reserve on the stack (which of course is negative).
How does this logic work?