MIPS: math-emu: Remove `modeindex' macro
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 Apr 2015 22:24:56 +0000 (23:24 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Apr 2015 23:09:10 +0000 (01:09 +0200)
commit2cfcf8a8313bd9bdb54d62ca4ea581f130869aca
treeb52d5d5a25e23c309be29d475884a0665a0bddbe
parent4a7c2371823a4d35eb4d4f5802c472469934c57d
MIPS: math-emu: Remove `modeindex' macro

Commit 56a64733 [MIPS: math-emu: Switch to using the MIPS rounding
modes.] removed the distinction between hardware and emulator rounding
mode encodings, the hardware encoding is now used in emulation as well.
Complement the change and remove the `modeindex' macro previously used
for indexing into encoding translation tables, it now does nothing and
only obfuscates code by reinserting the value extracted from FCSR.
Adjust comments accordingly.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9680/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/cp1emu.c