mips64 inline question

Richard Henderson rth@redhat.com
Wed Jan 23 18:44:00 GMT 2002


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~



More information about the Gcc mailing list