Why Can't I use 'float' inside the kernel? There are 2 main why you shouldn't use the 'float' or 'double' data type inside of the kernel. - The kernel does not save the FPU registers, therefore the FPU is always in an unknown state. - Due to percision differences on different platforms the value of a 'float' or 'double' can not be completely trusted to be the same. Tom On Tue, 30 Jul 2002, John Levon wrote: > On Tue, Jul 30, 2002 at 02:27:54PM -0700, Ramprasad wrote: > > > I wrote a kernel module by using float data type, I need "float" data type > > to calculate the frequencies. I am getting errors when I use float data > > type. How can I use "float" data type in Kernel module? > > You can't. > > (Who wants to write me an FAQ entry for this too :) > > john > > -- > "The simpler it is, the harder it is." > - Tim Van Holder > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/