This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mips64 inline question
- From: Richard Henderson <rth at redhat dot com>
- To: weasel at cs dot stanford dot edu
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 23 Jan 2002 17:56:11 -0800
- Subject: Re: mips64 inline question
- References: <200201232346.PAA2674792@meer.meer.net>
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~