This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips64 inline question


On Wed, Jan 23, 2002 at 03:46:27PM -0800, d p chang wrote:
> The code in question is in delay.h as:
> 
> extern __inline__ void __udelay(unsigned long usecs, unsigned long lpj)
> {
> 	unsigned long lo;
> 
> 	usecs *= 0x00068db8bac710cbUL;		/* 2**64 / (1000000 / HZ) */
> 	__asm__ ("dmultu\t%2,%3"
>                  :"=h" (usecs), "=l" (lo)
>                  :"r" (usecs),"r" (lpj));
> 	__delay(hi);
> }

This should work.  You should provide a complete compilable
example that shows the problem.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]