Integer operations

From libsimdpp-docs

The following simple operations for integer computations are provided.

Elementary operations

performs addition
(function template)
performs saturated addition
(function template)
performs subtraction
(function template)
performs saturated subtration
(function template)
performs multiplication, returns lower half of the result
(function template)
performs multiplication, returns higher half of the result
(function template)
performs multiplication, extends element width
(function template)
performs negation
(function template)

Comparisons

compares vector elements for equality
(function template)
compares vector elements for inequality
(function template)
compares vector elements for less than
(function template)
compares vector elements for greater than
(function template)
compares vector elements for less than or equal
(function template)
compares vector elements for greater than or equal
(function template)

Reduction

computes the sum of all elements in the vector
(function template)
computes the product of all elements in the vector
(function template)
computes the minimum of all elements in the vector
(function template)
computes the maximum of all elements in the vector
(function template)
computes bitwise AND of all elements in the vector
(function template)
computes bitwise OR of all elements in the vector
(function template)
computes the sum of set bits in all elements in the vector
(function template)

Miscellaneous

computes absolute value
(function template)
computes rounded average
(function template)
computes truncated average
(function template)
selects minimum values
(function template)
selects maximum values
(function template)
performs left shift by scalar
(function template)
performs left shift by vector
(function template)
performs right shift by scalar
(function template)
performs right shift by vector
(function template)
computes the number of set bits
(function template)