Patent ID: 8447956

Claim:
A method for generating a result vector with subtracted values from a first input vector, comprising: in a processor, performing operations for: receiving the first input vector, a second input vector, and a control vector, and optionally receiving a predicate vector, wherein each vector includes a same number of elements; capturing a base value contained in an element of the second input vector at a key element position; and generating the result vector, wherein generating the result vector involves, if the predicate vector is received, for each element in the result vector to the right of the key element position for which a corresponding element in the predicate vector is active, otherwise, for each element in the result vector to the right of the key element position, setting the element in the result vector equal to the base value minus a total of the values in relevant elements of the first input vector, wherein the relevant elements include relevant elements from an element at the key element position to and including a predetermined element in the first input vector, and wherein a relevant element in the first input vector is an element in the first input vector for which a corresponding element in the control vector is active.