On 2015-08-22, Alan McKinnon <[email protected]> wrote:

[regarding floating point comparison.]

> A good way to demonstrate just how problematic floats can be is to point
> out that floats are banned in the linux kernel for exactly this reason.
> Integers only.

Really?  The reason that I was given when I wanted to use FP in a
kernel module is that handing context switching for FP hardware is
much simpler/faster if you assume no FP operations in the kernel. 
Nobody ever mentioned the comparison "problem" or other typical FP
computation stumbles -- the decision was supposedly based on the
complications of handing FP hardware context switches.

-- 
Grant




Reply via email to