]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 12 May 2014 23:24:27 +0000 (01:24 +0200)
commit592dde5b2c8889f8a64090f9492f067d1bb828b0
tree7673702ec935e0e83016131dacc0a571092c9667
parentc5374e4c20d2f38abd03060a83336602f0e60906
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