You can use some in rt-threads if you set the thread attribute to
use_fp before the first time it uses the "math coprocessor".

The safest way to find out what math functions you can use is to
extract the modules you want from the math library with the 'ar'
command, then use objdump to see what else these modules call/refer
to.  It may be possible to build up a small library of kernel-safe
math functions.

Also, remember that the math coprocessor itself can execute some
instructions that evaluate math functions like sine and cosine.

    Norm

----- Original Message -----
From: Young Joon Lee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 5:33 PM
Subject: [rtl] How can I use math function in RT module?


> Hi,
>
> I need to calculate some equations which include sine
> and exponential functions. Because I need to calculate
> the trajectory of robot in RealTime.
> Does anybody know how to calculate the equations?
>
> I know I can't use standard math functions in Kernel module.
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to