[Top][All Lists]

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

Re: Floating point usage

From: Vesa Jääskeläinen
Subject: Re: Floating point usage
Date: Thu, 05 Jun 2008 23:12:17 +0300
User-agent: Thunderbird (Windows/20080421)

Pavel Roskin wrote:

I tried to compile the current grub on Fedora 9 for PowerPC, but it
failed due to floating point usage in ls.  Sorry, I don't have the exact
message handy.

Anyway, there are several references to "float" and "double" in the
code, and I think it's wrong.  GRUB should be able to work on systems
with no floating point support and on systems where the floating point
device needs to be activated.  Even Linux kernel avoids using floating

If everyone is fine, I'll try to remove all floating point stuff from
the code.

Its only for printing units in human readable format. So its only small arithmetics to get it going nicely with integers. While you are there, can you modify it to use more proper units... MiB , KiB,...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]