[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using doubles in the kernel



Hi

from reading before as far as i know when the kernel state is entered
from irq / user space the floating point registeres are not saved
and same when returning to userspace they are not retored

so using them will scribble random data pver them if a userspace
program is using the floating point registers

thiugh i could be wrong.

    JAmes

----- Original Message -----
From: "Lars Olsson" <lo22@cogs.susx.ac.uk>
To: <kernelnewbies@nl.linux.org>
Sent: Saturday, July 06, 2002 1:35 PM
Subject: using doubles in the kernel


> Dear all,
> Is there any reason why you should not use doubles and floats in the
> kernel? I remember that someome said that you should not use floating
> point types but I can't remember where. I need to use floating point
> number since I'm implementing a neural network (executing in kernel
> space because of performance reasons) and it is alot easier to implement
> this with floating point numbers.
>
> cheers,
> lars
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/