From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K4Loq-0005gq-5J for mharc-grub-devel@gnu.org; Thu, 05 Jun 2008 16:12:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4Loo-0005gV-P9 for grub-devel@gnu.org; Thu, 05 Jun 2008 16:12:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4Lon-0005gA-Am for grub-devel@gnu.org; Thu, 05 Jun 2008 16:12:18 -0400 Received: from [199.232.76.173] (port=34707 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Lon-0005g7-8V for grub-devel@gnu.org; Thu, 05 Jun 2008 16:12:17 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:51890 helo=jenni2.rokki.sonera.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4Lom-0003Kq-SZ for grub-devel@gnu.org; Thu, 05 Jun 2008 16:12:17 -0400 Received: from [127.0.0.1] (88.193.32.97) by jenni2.rokki.sonera.fi (8.5.014) id 483E832F0062EC69 for grub-devel@gnu.org; Thu, 5 Jun 2008 23:12:13 +0300 Message-ID: <484848A1.4010902@nic.fi> Date: Thu, 05 Jun 2008 23:12:17 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: The development of GRUB 2 References: <1212598032.15804.9.camel@dv> In-Reply-To: <1212598032.15804.9.camel@dv> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Floating point usage X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 20:12:19 -0000 Pavel Roskin wrote: > Hello! > > 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 > point. > > 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,...