[PATCH] math-emu: correct test for downshifting fraction in _FP_FROM_INT()
schwidefsky at de.ibm.com
Tue Jul 20 17:34:59 EST 2010
On Tue, 20 Jul 2010 00:12:02 +0200
Mikael Pettersson <mikpe at it.uu.se> wrote:
> Unfortunately it seems difficult to write a generic module
> which uses math-emu:
> - <math-emu/soft-fp.h> includes <asm/sfp-machine.h>,
> but only a handful of archs have it
> - <asm/sfp-machine.h> isn't always self-contained and may depend
> on various $arch-specific declarations being present
> The given test module works on sparc64 and ppc64, where it uses
> the kernel's sfp-machine.h, and on x86 where it uses a stub
> sfp-machine.h supplied by itself. I tried to cross-compile it
> for alpha, but that failed due to its sfp-machine.h not being
> self-contained. I didn't try sh or s390.
It would be challange to try this on s390. The math emulation code is
only used for really old 31 bit machines. Starting with the G5 the fpu
can do IEEE754, I would say the math emulation code is irrelevant for
s390 by now.
"Reality continues to ruin my life." - Calvin.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 3811 bytes
Desc: not available
More information about the Linuxppc-dev