Doing floating point calculations in kernel space

ARIBAUD Albert a.aribaud at giat-industries.fr
Fri Oct 17 22:16:58 EST 2003


> -----Message d'origine-----
> De : owner-linuxppc-embedded at lists.linuxppc.org
> [mailto:owner-linuxppc-embedded at lists.linuxppc.org]De la part de Toni
> Van Remortel
> Envoyé : vendredi 17 octobre 2003 09:16
> À : Linuxppc-Embedded
> Objet : Doing floating point calculations in kernel space
>
>
>
> Hi all,
>
> When I thought it was a /proc problem, it was a float problem.
> The CPU (405GP) has no FPU, but I need to calculate sin and cos in a
> kernel module.

Hmm... Bit off-topic, but why not use tables tailored to the
precision you need (if you want to compute any sin or cas any time)
or the equivalent of the Bresenham algorithm (if you only want to
draw arcs or ellipes) ?

HTH,

Albert.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list