[PLUG] Floating Point arithmetic in the Kernel
श्रीधर नारायण दैठणकर
ghodechhap at ghodechhap.net
Sat Aug 18 20:28:42 IST 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