Re: arithmetic functions for linux driver

From: John Bradford
Date: Wed Mar 17 2004 - 15:27:51 EST


Quote from "Richard B. Johnson" <root@xxxxxxxxxxxxxxxxxx>:
> On Wed, 17 Mar 2004, VINOD GOPAL wrote:
>
> > The range of input is varying.
> > Iam looking for floating point arithmetic functions
> > like log10, pow , sin ,exp , cos etc.
> >
>
> Like the range of input from an ADC? You get the data in
> the kernel and you muck with it in user-mode after you
> have it.

If the task in hand is anything much more complicated than getting the
input from an 8-bit ADC, and transforming it using a single function
such as sin, then yes, do it in userspace.

John.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/