]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] ieee754[sd]p_neg workaround
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 2 Jan 2006 12:59:49 +0000 (21:59 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Feb 2006 13:30:25 +0000 (13:30 +0000)
commitf2896f70bbd4341f13251e5135db9497730a8eea
tree76d4dbd9b8a34a5540f94abf45a4ecb73ae2d0f0
parent4694b578399d6ca1c897a007aa6bb17102bcec5f
[MIPS] ieee754[sd]p_neg workaround

It looks glibc's pow() assumes an unary '-' operation for any number
(including NaNs) always inverts its sign bit (though IEEE754 does not
specify the sign bit for NaNs).  This patch make the kernel math-emu
emulates real MIPS neg.[ds] instruction.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/dp_simple.c
arch/mips/math-emu/sp_simple.c