All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Floating point usage
Date: Thu, 05 Jun 2008 23:12:17 +0300	[thread overview]
Message-ID: <484848A1.4010902@nic.fi> (raw)
In-Reply-To: <1212598032.15804.9.camel@dv>

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



      parent reply	other threads:[~2008-06-05 20:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 16:47 Floating point usage Pavel Roskin
2008-06-05 15:12 ` Jan Kleinsorge
2008-06-05 15:23   ` Stefan Reinauer
2008-06-05 17:12     ` Colin D Bennett
2008-06-05 20:01   ` Vincent Pelletier
2008-06-05 20:53     ` Robert Millan
2008-06-05 21:22       ` Stefan Reinauer
2008-06-05 20:12 ` Vesa Jääskeläinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=484848A1.4010902@nic.fi \
    --to=chaac@nic.fi \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.