linux-mips
[Top] [All Lists]

Re: use float in no-fpu mips kernel modules?

To: "renc stone" <renwei@huawei.com>, <linux-mips@oss.sgi.com>
Subject: Re: use float in no-fpu mips kernel modules?
From: "Kevin D. Kissell" <kevink@mips.com>
Date: Sat, 19 Jan 2002 23:27:37 +0100
References: <025901c1a0c4$30ec20e0$3d6e0b0a@huawei.com>
Sender: owner-linux-mips@oss.sgi.com
>   Any one know how to use float point in mips kernel?
>   We use some 2.4.5 kernel, on idt mips 32334, which has no fpu, I think.
>   we want to use the float numbers like this:
>   float a = 87;
>   a * = 1.04;
>   Any kernel functions to do this? or how to compile it use soft fpu
> support?

The way I integrated the Algorithmics FPU emulaton
code into the kernel *used* to work for kernel FP.
Maybe someone has broken it since, and there may
well be situations where it was unsafe, but have you 
tried simply confuguring FPU emulation and running 
your code with it?

            Kevin K.


<Prev in Thread] Current Thread [Next in Thread>