[PLUG] Floating Point arithmetic in the Kernel
Sat Aug 18 07:58:42 PDT 2007
On Saturday 18 Aug 2007 20:08:12 Shantanoo Mahajan wrote:
> Integer calculations are much more faster than floating point
> Generally, integer calculations are necessary and sufficient for the
> done in kernel code. But if you really required floating point, you
> can always
> do that.
Dumb question. Consider gettimeofday(). Whats the point of having two
int/longs in a struct when a float would have sufficed? Not to mention
calculating time interval etc are bit easier?
Just a thought..
More information about the plug-mail