Subject: Re: Floating point calculation in the kernel
To: None <firstname.lastname@example.org>
From: Martin Husemann <email@example.com>
Date: 02/24/2005 12:00:37
On Thu, Feb 24, 2005 at 11:56:41AM +0100, Peter Bex wrote:
> (aside from the obvious advice that it's not a good thing to do in
> the kernel
That would be too weak - it's forbidden, unless you play special arch
dependend tricks to allow it. Some archs do that for their memcpy/memset
implementations. You will need to explicitly save and restore fpu state
before and after your code and enable/disable the fpu.
Let me ask the other obvious question: why do you implement the neural network
in the kernel?