From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,1d6673b85a87920a X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,3567d4ae1ce1d0a3 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,3567d4ae1ce1d0a3 X-Google-Attributes: gid102b75,public From: tromp@cwi.nl (John Tromp) Subject: Re: P6 vs Alpha (was Re: Pro vs. Mips/Alpha) Date: 1996/07/22 Message-ID: #1/1 X-Deja-AN: 169475322 sender: news@cwi.nl (The Daily Dross) references: <4svpfb$ifq@news-rocq.inria.fr> organization: CWI, Amsterdam newsgroups: comp.sys.intel,comp.sys.dec,comp.arch >Using Torbjvrn Granlund's code from GMP2: >On Alpha EV5, the inner loop takes 18 cycles per 64-bit word. >On Pentium Pro, it takes 9 cycles per 32-bit word. Since the run-time >is O(n^2) for n words, that is equivalent to 36 cycles per 64 bits. Can anyone tell me if the new MMX instructions provide for a 64x64->128 bit multiplication? There seems to be a packed-multiply-high instruction, what exactly does this do when the 64 bits is dealt with as one big number, rather than many small ones? Getting the high 64 bits of a 64x64->128 is great for division by constants, which allows very fast computation of hashfunctions like (x % prime). regards, %!PS % -John Tromp (http://www.cwi.nl/~tromp/) 42 42 scale 7 9 translate .07 setlinewidth .5 setgray/c{arc clip fill setgray}def 1 0 0 42 1 0 c 0 1 1{0 3 3 90 270 arc 0 0 6 0 -3 3 90 270 arcn 270 90 c -2 2 4{-6 moveto 0 12 rlineto}for -5 2 5{-3 exch moveto 9 0 rlineto}for stroke 0 0 3 1 1 0 c 180 rotate initclip}for showpage