]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc/math-emu: Fix single float point division bug
authorLiu Yu <yu.liu@freescale.com>
Tue, 28 Oct 2008 03:50:18 +0000 (11:50 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 3 Dec 2008 14:19:12 +0000 (08:19 -0600)
commitcf03033658739accd24f18f864107151a2e9a796
tree03b7205dc07dfc875c045804eb7bf8eaf9c5d5e7
parent55b9121b4295a8260e52dd78327f1edd1e34feb2
powerpc/math-emu: Fix single float point division bug

PowerPC float point division emulation is derived from gcc.
I reported this problem on gcc maillist and got this reply:
http://gcc.gnu.org/ml/gcc/2008-03/msg00543.html

Since UDIV_NEEDS_NORMALIZATION is not used by kernel, we should use
_FP_DIV_MEAT_1_udiv_norm to make sure the single float point
is normalized before udiv_qrnnd.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/sfp-machine.h