[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

68881 Include file



Hi all,
	I have a Falcon and have recently installed a 68882 maths 
coprocessor.  I tried to compile a simple c program to use the 68882 with 
Gcc 2.5.8.  I included math.h and defined -D_M68881 (I think) which makes 
math.h include math-68881.h.

It is this header file I am having difficulties with.  The compiler 
complains about incompatible (or inconsistent) types for every function.
Heres an extract of the file and the place it complains:


__inline static double
sin (double x) __const_attribute
__inline static double
sin (double x)
{
   double value;
   
   __asm ("fsin%.x %1,%0"
          : "=f" (value)
          : "f" (x));           <------  Compiler complains here
   return value;
}


The header says that it was last modified 23 May 1992.

If I am trying to use it incorrectly please correct me.  If a new header is 
required can somebody mail it to me.  Whatever you can do please HELP!!! 

Thanks in advance 
                              Andrew