Searching an array of multi-byte elements using an n-byte search instruction
AssigneeInternational Business Machines Corporation
InventorMotohiro Kawahito
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorMotohiro Kawahito
Estimating the term…
A computer-implemented method, system and computer program product for effectively searching for values in a multi-byte array of elements using an n-byte search instruction. Multiple values to be searched in an N-byte array of elements in a loop are received. The loop is optimized by searching the received search values at the starting address of the N-byte array of elements using the n-byte search instruction. A successful search is performed if the received return address points to an address found in the lowest n-bytes of the N-byte array of elements and an element of the address corresponds to a search value. Otherwise, a subsequent search for the search values at the address of the next element in the N-byte array of elements is performed if there are additional elements in the N-byte array of elements to be searched.
A computer-implemented method for effectively searching for values in a multi-byte array of elements using an n-byte search instruction, the method comprising:
A computer program product for effectively searching for values in a multi-byte array of elements using an n-byte search instruction, the computer program product comprising one or more computer readable storage mediums having program code embodied therewith, the program code comprising programming instructions for:
A system, comprising:
Dependencies are inferred from the claim text.