From: Bill Nottingham <[EMAIL PROTECTED]>
> Todd Harrington ([EMAIL PROTECTED]) said:
> > First, Is there a way to print out the float (i.e -12.236) in the ioctl
of
> > the driver for debug purposes? Also, can I do floating point math in the
> > ioctl (like multiplying a number by 0.34556)?
>
> Floating point math in the kernel is generally Not Allowed.
This doesn't mean floating point math is Completely Impossible,
it just means you do it by hand. Or you make up your own
format like back in the olden days. Look at the USL/ATT/Whatever
source code for the accounting functions. They contain routines
for 16-bit floating point numbers which work rather well.
-- Julie (... on really small machines with really small memories).
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list