public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Ilija Kocho <ilijak@siva.com.mk>
Cc: eCos developers <ecos-devel@ecos.sourceware.org>
Subject: Re: Single precision math library, porting to eCos.
Date: Mon, 25 Jul 2011 17:44:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1107252020220.3020@sg-laptop> (raw)
In-Reply-To: <4E253131.3030607@siva.com.mk>

On Tue, 19 Jul 2011, Ilija Kocho wrote:

> Hello colleagues
 
Hello Ilija,

my $0.02.

> We are working on a port of Newlib's single precision math library
> /float/ type functions/. We are going to contribute the port, so we
> would like to know if there is interest to incorporate it into main
> eCos tree.

It's very excited and honour task. But, AFAIK, eCos libm are based on
Free Domain Libm fdlibm 5.X (5.2?). The *fdlibm* is a part of netlib
software collection, the references:

http://www.netlib.org/
http://www.netlib.org/fdlibm/

and it (fdlibm) is labeled as

C math library for machines that support IEEE 754 floating-point

> Rartionale: Some recent/upcoming architectures such as Cortex-M4,
> Cortex-R, MPC 55xx can execute single precision floating point in
> hardware. This is also recognised by GCC, for instance GCC 4.6 can
> generate /-mhard-float/ code for Cortex-M4.

Good point.

But, may be first you would look on *Cephes Mathematical Library*

http://www.netlib.org/cephes/singldoc.html

It would be nice to get a set of single precision special math functions
like logf(), sinf(), cosf(), etc. as eCos math alternative which cephes
provides us. But, this is my brief view only. It seemed for me that to
get *cephes* under eCos is less complex task than to port the same part
from NewLib (may be I wrong, I have not dived in the subject).

In any case I like your idea to use hardware for single precision
calculations and value your efforts in this direction.


Sergei

> Regards
> 
> Ilija Kocho, manager
> SIvA doo
> http://www.siva.mk
> 

  reply	other threads:[~2011-07-25 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  7:25 Ilija Kocho
2011-07-25 17:44 ` Sergei Gavrikov [this message]
2011-07-25 19:55   ` Ilija Kocho

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=alpine.DEB.2.00.1107252020220.3020@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-devel@ecos.sourceware.org \
    --cc=ilijak@siva.com.mk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).