Re: optimizing 128bit integer arithmetic on ia32

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

 



inline uint64x64_t &operator += (uint64x64_t &lhs, const uint64x64_t &rhs)
{
  lhs._v.hi += rhs._v.hi;
  lhs._v.lo += rhs._v.lo;
  if (lhs._v.hi < rhs._v.lo)

if (lhs._v.lo  < rhs._v.lo)

    {
      lhs._v.hi++;
    }
  return lhs;
}

Does the generated code look any better with that correction? If not, you
want to tell us the exact command line and GCC version you used.


Segher



[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