MIPS: math-emu: Switch to using the MIPS rounding modes.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 30 Apr 2014 09:21:55 +0000 (11:21 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 23 May 2014 13:12:38 +0000 (15:12 +0200)
commit56a6473339dbd2e908cf8c6f2856d5de2bf8d15b
treea500f42c8e140cd909d0a5340474f6012c0740b4
parentaef3fb76aa1390ef864db888d06d8fcd5510df2d
MIPS: math-emu: Switch to using the MIPS rounding modes.

Previously math-emu was using the IEEE-754 constants internally.  These
were differing by having the constants for rounding to +/- infinity
switched, so a conversion was necessary.  This would be entirely
avoidable if the MIPS constants were used throughout, so get rid of
the bloat.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
15 files changed:
arch/mips/math-emu/cp1emu.c
arch/mips/math-emu/dp_add.c
arch/mips/math-emu/dp_sqrt.c
arch/mips/math-emu/dp_sub.c
arch/mips/math-emu/dp_tint.c
arch/mips/math-emu/dp_tlong.c
arch/mips/math-emu/ieee754.h
arch/mips/math-emu/ieee754dp.c
arch/mips/math-emu/ieee754sp.c
arch/mips/math-emu/sp_add.c
arch/mips/math-emu/sp_fdp.c
arch/mips/math-emu/sp_sqrt.c
arch/mips/math-emu/sp_sub.c
arch/mips/math-emu/sp_tint.c
arch/mips/math-emu/sp_tlong.c