[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
> calculations.
> Generally, integer calculations are necessary and sufficient for the
> things
> 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..

 Shridhar



More information about the plug-mail mailing list