Re: IEEE-754 Float to int

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

 




On Wed, Nov 23, 2016 at 6:00 PM, Lucas Tanure <tanure@xxxxxxxxx> wrote:
The best way to do it seems to be to write conversion function.
Receive the float in a u32, parse it's bits and return a s32. Can be
done without the use of floats.

​but this conversion-function might not be straight-forward :) ​it _may_ be possibly simplified depending on your precision requirements etc. etc.

​--
kind regards
anupam​


In the beginning was the lambda, and the lambda was with Emacs, and Emacs was the lambda.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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