[Mips] Simplify the code calculates HI16/LO16 relocations

No functional changes.