On 2007-Feb-11 00:39:29 -0800, "Eugene M. Kim" <[EMAIL PROTECTED]> wrote: >Fortunately the mouse also provides orientation data along with >coordinate data, so the correct cursor movement could be calculated from >it. The problem: The calculation needs trigonometry, but there seems to >be no math library support in the kernel (I ran "grep -w cos" on the >-CURRENT source tree, which turned nothing up). > >Does anyone have an idea on how to do this?
Floating point is not allowed in the kernel. I suggest you look up "cordic" in google. This is an efficient way to do fixed-point trigonometry. -- Peter Jeremy
pgp0vXse5QR9A.pgp
Description: PGP signature