Re: float and random number generator

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

 



aksingh@hss.hns.com writes:

> Hi,
>
>   So I can use a float in kernel modules right, if i use an expression,
>
> float some_float=some_int * some_int/some_int;,
>
> it isnt a problem, correct ???

Unless something has changed, it is a problem.

The floating point registers aren't saved when entering the kernel,
nor are they restored when leaving the kernel, so unless you're
prepared to do that yourself, you shouldn't use floating point.

-- 
--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/


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