Slience warnings by converting the shifts to mulitplies. Change-Id: Icde8f2df650f740b8e90691ba706a0853be84984