* [Xenomai-help] sqrt() function in xenomai kernel module
@ 2007-08-29 8:35 Mathieu JOINIE-MAURIN
2007-08-29 8:43 ` Jan Kiszka
2007-08-29 8:44 ` Gilles Chanteperdrix
0 siblings, 2 replies; 3+ messages in thread
From: Mathieu JOINIE-MAURIN @ 2007-08-29 8:35 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
Hi,
I need to use a sqrt() function in a kernel module code. I am a beginner with Xenomai. Is there any math_module which already exists ?
Thanks in advance,
Mathieu
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
[-- Attachment #2: Type: text/html, Size: 541 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai-help] sqrt() function in xenomai kernel module
2007-08-29 8:35 [Xenomai-help] sqrt() function in xenomai kernel module Mathieu JOINIE-MAURIN
@ 2007-08-29 8:43 ` Jan Kiszka
2007-08-29 8:44 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2007-08-29 8:43 UTC (permalink / raw)
To: Mathieu JOINIE-MAURIN; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Mathieu JOINIE-MAURIN wrote:
> Hi,
>
> I need to use a sqrt() function in a kernel module code. I am a beginner with Xenomai. Is there any math_module which already exists ?
Counter question: Why do you need to use math in kernel code? It is
generally a sign something is not well split-up between kernel-based
driver code and user-space RT applications.
To answer your question: No, Xenomai does not come with a kernel math
lib because there is not much use for it - generally. Porting the app to
user-space is recommended.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] sqrt() function in xenomai kernel module
2007-08-29 8:35 [Xenomai-help] sqrt() function in xenomai kernel module Mathieu JOINIE-MAURIN
2007-08-29 8:43 ` Jan Kiszka
@ 2007-08-29 8:44 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2007-08-29 8:44 UTC (permalink / raw)
To: Mathieu JOINIE-MAURIN; +Cc: xenomai
On 8/29/07, Mathieu JOINIE-MAURIN <mjoiniem@domain.hid> wrote:
>
> Hi,
>
> I need to use a sqrt() function in a kernel module code. I am a beginner
> with Xenomai. Is there any math_module which already exists ?
>
> Thanks in advance,
There is no math module, if you really want to, you can port the
libmath from a c library such as the glibc or uclibc, or newlib and
make it a kernel module. If you do so, we willl be pleased to add this
module to Xenomai.
Now, regarding the sqrt function, if what you want is the integer
square root of an integer argument, you can use the int_sqrt function,
declared in linux/kernel.h.
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-29 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 8:35 [Xenomai-help] sqrt() function in xenomai kernel module Mathieu JOINIE-MAURIN
2007-08-29 8:43 ` Jan Kiszka
2007-08-29 8:44 ` Gilles Chanteperdrix
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.