Finding the length of a set of character data having a termination character
AssigneeInternational Business Machines Corporation
InventorsJonathan D. Bradbury, Michael K. Gschwind, Timothy J. Slegel
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsJonathan D. Bradbury, Michael K. Gschwind, Timothy J. Slegel
Estimating the term…
The length of character data having a termination character is determined. The character data for which the length is to be determined is loaded, in parallel, within one or more vector registers. An instruction is used that loads data in a vector register to a specified boundary, and provides a way to determine the number of characters loaded, using, for instance, another instruction. Further, an instruction is used to find the index of the first termination character, e.g., the first zero or null character. This instruction searches the data in parallel for the termination character. By using these instructions, the length of the character data is determined using only one branch instruction.
A computer program product for determining a length of a set of data, the computer program product comprising:
A computer system for determining a length of a set of data, the computer system comprising:
A method of determining a length of a set of data, the method comprising:
Dependencies are inferred from the claim text.