Re: using doubles in the kernel

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

 



--- Lars Olsson <lo22@cogs.susx.ac.uk> wrote:
> Dear all,
> Is there any reason why you should not use doubles and floats in
> the
> kernel? I remember that someome said that you should not use
> floating
> point types but I can't remember where. I need to use floating
> point
> number since I'm implementing a neural network (executing in kernel
> space because of performance reasons) and it is alot easier to
> implement
> this with floating point numbers.
> 

I saw a great discussion on this issue before...try searching the
archives.

A quickie fix might be in Documentation/Docbook/Kernel-hacking.html
Search for "Some Basic Rules"...

Best Advice:  resign yourself to writing floating point into the
kernel...or doing without.

Harmony,

--Christine

P.S.  I've implemented a neural net.  Very cool fun!  Good luck Lars!


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
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