Re: Hi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 30, 2002 at 01:19:10PM -0600, Tom Bradley wrote:
>    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.

Yes. :) (Well, I think I've heard that somewhere in the kernel, the FPU
is used, but I can't recall where I heard that now. Unless anyone can
confirm this, it might be best to forget it. :)

>    - Due to percision differences on different platforms the value of a
>      'float' or 'double' can not be completely trusted to be the same.

No; this would only be a problem for sharing float/double data among
machines, and this problem is _very_ well known among floating point
users, so it doesn't provide a compelling reason to not use floating
point in the kernel.

-- 
http://www.wirex.com/

Attachment: pgp00138.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux