Messages in this thread | | | Date | Sun, 30 May 2004 22:11:40 -0600 (MDT) | From | Stephen Smoogen <> | Subject | Re: How to use floating point in a module? |
| |
On Sun, 30 May 2004 ndiamond@despammed.com wrote:
>A driver, implemented as a module, must do some floating-point >computations including trig functions. Fortunately the architecture is >x86. A few hundred kilograms of searching (almost a ton of searching >:-) seems to reveal the following possibilities.
How much precision do you need for you hardware device? It would probably be easier to use 1 to 2 precision point old integer approx equations for what you are wanting. However, it is probably the worst thing to do by putting that much overhead into kernel space. In the end, if you are needing tight control anyway, a real time kernel would be a better match for your requirements. Keep the hardware as simple as possible (or put the calculations into the sub-hardware piece).
-- Stephen John Smoogen smoogen@lanl.gov Los Alamos National Lab CCN-5 Sched 5/40 PH: 4-0645 Ta-03 SM-1498 MailStop B255 DP 10S Los Alamos, NM 87545 -- You should consider any operational computer to be a security problem -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |