optimize integer multiply with a constant