AIUI, the math coprocessor on an x86 CPU can be used in an RTL-module by
declaring that it uses FP math. I don't believe that there are these kinds
of restrictions in other architectures.
Norm
----- Original Message -----
From: Theo ten Brummelaar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 11:59 AM
Subject: Re: [rtl] using the sin function in rtlinux
> Wayne Dunkel wrote:
> >
> > I have included math.h in my source file, but gcc says that the
reference to sin is undefined. what should I do?
>
> Read a book on programing for the kernel. Functions like sin are not
> available in kernel space. I would suggest using a lookup table of some
> sort.
>
> Theo
>
>
> --
> Dr. Theo ten Brummelaar
> The CHARA Array-Georgia State University-Mount Wilson Observatory
> http://www.chara.gsu.edu/~theo Ph: 626-796-5405 Fax: 626-796-6717
>
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [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/
>
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/