ieee754[sd]p_neg workaround
commite243f3c204e5767909c87e7ceb7625b165183345
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 2 Jan 2006 12:59:49 +0000 (2 21:59 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 30 Jan 2006 17:43:09 +0000 (30 17:43 +0000)
tree113cdd6d8b213f2bd81de4debac31154950f15e0
parent0bb4af5fb4a7af26bafee7f390635eca8e9d82de
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