MIPS: TXx9: Fix possible overflow in clock calculations