]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: math-emu: Handle zero accumulator case in MADDF and MSUBF separately
authorAleksandar Markovic <aleksandar.markovic@imgtec.com>
Mon, 19 Jun 2017 15:50:12 +0000 (17:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 28 Jun 2017 00:54:30 +0000 (02:54 +0200)
commitddbfff7429a75d954bf5bdff9f2222bceb4c236a
tree89a95f0e4b2d3859fd900e9b1e74a25887bb2355
parent25d8b92e0af75d72ce8b99e63e5a449cc0888efa
MIPS: math-emu: Handle zero accumulator case in MADDF and MSUBF separately

If accumulator value is zero, just return the value of previously
calculated product. This brings logic in MADDF/MSUBF implementation
closer to the logic in ADD/SUB case.

Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
Cc: James.Hogan@imgtec.com
Cc: Paul.Burton@imgtec.com
Cc: Raghu.Gandham@imgtec.com
Cc: Leonid.Yegoshin@imgtec.com
Cc: Douglas.Leung@imgtec.com
Cc: Petar.Jovanovic@imgtec.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16512/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/dp_maddf.c
arch/mips/math-emu/sp_maddf.c