Shouldn't that be `value & (alignment - 1)` ?