tech-kern archive

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

Re: atan2 and sqrt --> in driver



On Tue, Dec 09, 2008 at 05:23:23PM +0100, Robert Fritzsche wrote:

> can I use atan2 and sqrt inside a driver, i need some computation for
> mouse movements.

Most certainly not. Inside the kernel the only FPU instructions allowed are
those used to save or restore FPU state on context switch. Also, the
math library is not linked into the kernel, for the sam reason.

What are you trying to do *in the driver* that can't be done with integer
arithmetics?

Why can't you do it your program (or in a library)?

Regards,
        -is


Home | Main Index | Thread Index | Old Index