From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,d5991e208f8d5b5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,19ab04458779b99e X-Google-Attributes: gid1164f8,public From: pmontgom@cwi.nl (Peter L. Montgomery) Subject: Re: Steal their thunder (was Re: Alpha window of opportunity?) Date: 1998/06/10 Message-ID: #1/1 X-Deja-AN: 361314905 Sender: news@cwi.nl (The Daily Dross) References: <35787CE8.51BF357E@videotron.ca> <6la6kf$ljm@crl3.crl.com> <357E265D.D42F5D98@shore.net> Organization: CWI, Amsterdam Newsgroups: comp.arch,comp.sys.dec In article <357E265D.D42F5D98@shore.net> Russell Sasamori asks: >> the conclusion seems to be that 128-bits are useful for >> some multimedia stuff (AltiVec should demonstrate that), >> and some crypto work seems to be a lot faster with them. >George: >How would cryptography benefit from wider registers and ALU's? >I thought the most frequently performed operations were emulating LFSR's so I >cannot imagine how having a 128-bit ALU can present such a big benefit over a >64-bit ALU, for example. (Unless the the ALU was custom-designed to do >cryptography work). Some cryptographic algorithms, such as RSA, require exponentiation modulo big numbers (about 1024 bits). Using a 64-bit ALU with unsigned 64 x 64 -> 128 multiplication (which the Alpha has via its MULQ and UMULH instructions), we need 256 64 x 64 multiplications to do a 1024 x 1024 multiplication via the grade-school algorithm. With a 128-bit ALU, the cost becomes 64 128 x 128 multiplications. The number of operations has dropped by a factor about 4. Even if each 128-bit operation takes twice as long as the corresponding 64-bit operation, we gain considerably. For these applications, a pipelined integer multiplier is important. The inner loop of a 1024 x 1024 multiplication might fetch a 128-bit word from one operand and multiply it by all eight 128-bit words from the other operand, getting eight 256-bit products. We can afford to wait several cycles for each multiplication to complete if several 128 x 128 multiplications are executing concurrently. If instead we must wait for the multiplier to complete one operation before starting a second multiplication, we undergo this delay 16 times (once per low product and once per high product). I have heard rumors that the 21264 will have a pipelined integer multiplier, but have not seen such an announcement from DEC. -- Peter-Lawrence.Montgomery@cwi.nl San Rafael, California