Computer Chess Club Archives


Search

Terms

Messages

Subject: Hammers 128bit shifts

Author: Gerd Isenberg

Date: 01:48:03 09/27/02


from:

 AMD x86-64 Architecture
 Programmer’s Manual
 Volume 4:
 128-Bit Media Instructions

===============================================================================
PSLLDQ Packed Shift Left Logical Double Quadword

Left-shifts the 128-bit (double quadword) value in an XMM register by the
number of bytes specified in an immediate byte value. The low-order bytes that
are emptied by the shift operation are cleared to 0. If the shift value is
greater than 15, the destination XMM register is cleared to all 0s.

PSRLDQ Packed Shift Right Logical Double Quadword

Right-shifts the 128-bit (double quadword) value in an XMM register by the
number of bytes specified in an immediate byte value. The high-order bytes that
are emptied by the shift operation are cleared to 0. If the shift value is
greater than 15, the destination XMM register is cleared to all 0s.
===============================================================================

Same instructions are already available on Intel's PIV with SSE2.
I'll hope that "is greater than 15" is a typo or erroneous copied from PSLLW.
It should be 127 here. Can anybody confirm this for PIV?

Regards,
Gerd



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.