[PATCH] tools: Change the division operator to a right shift operator