Apple's abstract
A lookup operation is carried out on a data table by logically dividing the data table into a number of smaller sets of data that can be indexed with a single byte of data. Each set of data consists of two vectors, which constitute the operands for a permute instruction. Only a limited number of bits are required to index into the table during the execution of this instruction. The remaining bits of each index are used as masks into a series of select instructions. The select instruction chooses between two vector components, based on the mask, and places the selected components into a new vector. The mask is generated by shifting one of the higher order bits of the index to the most significant position, and then propagating that bit throughout a byte, for example by means of an arithmetic shift. This procedure is carried out for all of the index bytes in the vector, to generate a select mask. The select mask is then used during a select operation, to choose between the results of permute instructions on different ones of the logically divided sets of data. Multi-byte table entries are retrieved by replicating each index value and adding consecutive values to form multiple consecutive index values that are then used in multiple permute operations.
Scalar table lookup operation

Patent FIG. 1 is a schematic illustration in block form of a scalar table lookup operation.
The present invention is generally directed to table lookup operations performed in computers which employ a vector-based processing architecture. One example of such a computer is a Single Instruction Multiple Data (SIMD) machine, such as the AltiVec processor manufactured by Motorola, Inc. To facilitate an understanding of the invention, exemplary embodiments will be described hereinafter with reference to the architecture employed in such a processor. However, it will be appreciated that the principles which underlie the invention are not limited to this particular environment. Rather, the invention can be implemented in any type of vectorized computing platform where it is desirable to perform a table lookup on relatively large tables.
A table lookup operation can be carried out in a scalar fashion or, in appropriate environments, a vectorized fashion. An example of a scalar lookup operation is depicted in FIG. 1. During execution, a computer program 10 generates an index value that is stored in a register 12 of the computer's central processing unit (CPU). For instance, in the operation of a graphics program, the index value may specify a color to be displayed on a monitor 14. An 8-bit index value can be used to specify one of 256 different colors. However, more than eight bits of data may be necessary to uniquely identify the color, for printing or display purposes. For example, in a color monitor, each of the red, green and blue components of the color may need to be specified by a separate 8-bit value, thereby requiring a total of 24 bits. In addition, the color may have an associated alpha value, or transparency factor, which is also expressed in 8 bits. Hence, a total of 32 bits of data is required to specify the particular color to be displayed by the monitor. In this case, a color lookup table 16 is employed. This table may be stored in the random access memory (RAM) of the computer. The 8-bit index value in the register 12 specifies one of 256 different entries within the lookup table. The particular entry, which corresponds to the index value is read out of the table and stored in a register 18, where it is forwarded to a display driver 20 within the computer's operating system, to generate the appropriate display on the monitor 14.
For more details, see patent [url=http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&p=1&u=%2Fnetahtml%2FPTO%2Fsearch-bool.html&r=5&f=G&l=50&co1=AND&d=PG01&s1=%22Apple+Computer%22&OS="Apple+Computer"&RS="Apple+Computer"]20060101229[/url]
Notice
Macsimum News presents only a brief summary of patents with associated graphic(s) for journalistic news purposes as each such patent application and/or grant is revealed by the U.S. Patent & Trade Office. Readers are cautioned that the full text of any patent applications and/or grants should be read in its entirety for further details.
neo@macsimumnews.com