]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: math-emu: Unify ieee754sp_m{add,sub}f
authorPaul Burton <paul.burton@imgtec.com>
Thu, 21 Apr 2016 13:04:49 +0000 (14:04 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:22 +0000 (14:02 +0200)
commit04a6521660cd183803cdd548d057a834cc70226c
treedcbed0ce8143e823e3cd3ba8db3810b89861705e
parent7ee10b7433e7fb03d05dbe77f70e28c4454e74b2
MIPS: math-emu: Unify ieee754sp_m{add,sub}f

The code for emulating MIPSr6 madd.s & msub.s instructions has
previously been implemented as 2 different functions, namely
ieee754sp_maddf & ieee754sp_msubf. The difference in behaviour of these
2 instructions is merely the sign of the product, so we can easily share
the code implementing them. Do this for the single precision variant,
removing the original ieee754sp_msubf in favor of reusing the code from
ieee754sp_maddf.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13154/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/Makefile
arch/mips/math-emu/sp_maddf.c
arch/mips/math-emu/sp_msubf.c [deleted file]