lkml.org 
[lkml]   [2004]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.061 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site