On Tue, 2002-07-30 at 15:19, Tom Bradley wrote: > > > 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. Don't you mean the kernel does not *always* save the FPU registers? I mean, doesn't the kernel save the FPU regs if a user-space process is using 'em(less time taken for context-switch then)? -- Kashif > > - Due to percision differences on different platforms the value of a > 'float' or 'double' can not be completely trusted to be the same. > > > Tom -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/