mips: add single-instruction math functions