FIELD: computing technology.
SUBSTANCE: invention relates to computing technology. A method of executing a machine instruction in a central processing unit determining whether the mask field includes a zero element based on the mask field including search for a zero element, searching the second operand for a zero element, the searching providing a null index, the null index including one of an index of a zero element found in the search or an indication of no zero elements found; comparing one or more elements of the second operand with one or more elements of the third operand for equality, the comparing providing a compare index, the compare index including one of an index of an equal element based on the comparing finding an equal element or an indication of no equality based on the comparing finding no equal elements; and providing a result, the result based on whether the search for zero element was performed, wherein the result includes one of: based on not performing the search for zero element, the result includes the compare index; or based on performing the search for zero element, the result includes one of the compare index or the null index.
EFFECT: technical result is to increase the efficiency of processing character data.
12 cl, 18 dwg
Authors
Dates
2016-06-10—Published
2013-03-07—Filed