From: "Andrew E. Mileski" <andrewm@isoar.ca>
To: linuxppc-embedded@ozlabs.org
Subject: Re: Floating Point Operation in Kernel
Date: Thu, 14 Dec 2006 18:19:41 -0500 [thread overview]
Message-ID: <4581DC0D.4030506@isoar.ca> (raw)
In-Reply-To: <426172.37473.qm@web53101.mail.yahoo.com>
jimmy liu wrote:
> I am writing a module which need be integrated to the
> linux kernel with floating point operations for
> mpc82xx. The kernel does not provide support for
> floating point operations. Does anybody have good idea
> to implement it or make it to work around?
How about my fixed point routines. They use S31.32 fixed format, which
is often better precision than using floats, though it has less range.
Awkward to use, but handy when you absolutely need to.
I originally wrote it for MP3 decoding on ARM, but it should be
portable to anything supporting "signed long long" format (hence
the name). http://cvs.isoar.ca/math-sll/
--
Andrew E. Mileski
prev parent reply other threads:[~2006-12-15 0:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 21:16 Floating Point Operation in Kernel jimmy liu
2006-12-12 22:09 ` Grant Likely
2006-12-13 1:45 ` Carlos Munoz
2006-12-13 16:20 ` jimmy liu
2006-12-13 16:35 ` Ben Warren
2006-12-14 23:19 ` Andrew E. Mileski [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=4581DC0D.4030506@isoar.ca \
--to=andrewm@isoar.ca \
--cc=linuxppc-embedded@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).