[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] using the sin function in rtlinux
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 <theo@mtwilson.edu>
To: <rtl@fsmlabs.com>
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 owner-rtl@fsmlabs.com -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>