Re: Storing 64-bit result on ARM using inline assembly

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

 



Leonitis <rubixqb@xxxxxxxxx> writes:

> I am trying to write an inline function that does a 32-bit by 32-bit
> multiply (32x32->64).

I think you're making it a bit hard on yourself.  How about this:

long long
foo(int i, int j)
{
  return (long long) i * (long long) j;
}

Seems to work for me, when optimizing.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux