let new_ptr = new_ptr & !(align - 1);
Edit: I get it now. My brain was interpreting NEG as NOT for some reason.