Expand proof_shift_dynamic to 32 bits