This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: libm use in kernel
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Michael Bergandi <mbergandi at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 15 Nov 2010 21:52:09 +0200 (EET)
- Subject: Re: [ECOS] libm use in kernel
- References: <AANLkTi=o14k7DemP6F=+Jb5GsdXzkafONKgKkCRymDvf@mail.gmail.com>
On Wed, 10 Nov 2010, Michael Bergandi wrote:
I am wondering if someone could shed some light the possibility of
using libm from a driver in the kernel.
Hi Michael,
Read about eCos math lib re-entrancy here
http://ecos.sourceware.org/docs-latest/ref/math-library-compatibility-modes.html
[snip]
From math.h:
226
227 externC double
228 log( double );ÂÂÂÂÂÂÂÂÂÂÂÂ // natural logarithm
229
Also if your code uses log() functions only try
http://www.google.com/search?q=fast+logarithm
HTH
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss