emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic loading progress


From: Paul Eggert
Subject: Re: Dynamic loading progress
Date: Sun, 4 Oct 2015 13:19:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Daniel Colascione wrote:
Can you really imagine a general-purpose machine with 128-bit words?

I don't have to imagine it. I have one on my desk right now, running Ubuntu 15.04 on a Xeon E3-1225. If I take this program:

  __int128
  mulbig (long a, long b)
  {
    __int128 aa = a;
    return aa * b;
  }

and compile it with gcc -O2, I get the following machine instructions:

        mulbig:
                movq    %rdi, %rax
                imulq   %rsi
                ret

and this yields a 128-bit value with the mathematically-correct answer (integer overflow is not possible for this example).

Admittedly my desktop doesn't support 128-bit words as well as I'd like. But the support should be good enough for Emacs (of course, it should be enabled only on platforms that have it).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]