Re: Float numbers in kernel

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

 



You shouldn't use floats in the kernel for various reasons, see the archives.

If it needs a float you should rework the algorithm so that it can use a fixed-point number instead.

Tom



Mauricio Lin wrote:

Hi all,

Does anyone know how to handle floating point
variables in Kernel code?

I would like to code a function that needs float
numbers.

BR,

Mauricio Lin.

=====
************************************************
Conhecimento vem do seu instrutor; Sabedoria vem do seu interior. (Bruce Lee) ************************************************


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


--
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/


[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