[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100720093459.10f0ea90@mschwide.boeblingen.de.ibm.com>
Date: Tue, 20 Jul 2010 09:34:59 +0200
From: Martin Schwidefsky <schwidefsky@...ibm.com>
To: Mikael Pettersson <mikpe@...uu.se>
Cc: linux-kernel@...r.kernel.org, sparclinux@...r.kernel.org,
linux-s390@...r.kernel.org, linux-alpha@...r.kernel.org,
linux-sh@...r.kernel.org, linuxppc-dev@...abs.org
Subject: Re: [PATCH] math-emu: correct test for downshifting fraction in
_FP_FROM_INT()
On Tue, 20 Jul 2010 00:12:02 +0200
Mikael Pettersson <mikpe@...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.
--
blue skies,
Martin.
"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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists