Operators

From libsimdpp-docs

The library provides the following operators that behave equivalently to the respective free functions.

operator+
performs addition, wraps add(floating-point) and add(integer)
(function template)
operator-
performs subtraction, wraps sub(floating-point) and sub(integer)
(function template)
operator*
performs multiplication, wraps mul(floating-point) and mul_lo(integer)
(function template)
operator/
performs division, wraps div(floating-point)
(function template)
operator>>
performs shift right, wraps shift_r(integer)
(function template)
operator<<
performs shift left, wraps shift_l(integer)
(function template)
operator&
performs bitwise AND, wraps bit_and
(function template)
operator|
performs bitwise OR, wraps bit_or
(function template)
operator^
performs bitwise XOR, wraps bit_xor
(function template)
operator~
performs bitwise NOT, wraps bit_not
(function template)
operator==
performs comparison for equality, wraps cmp_eq(floating-point) and cmp_eq(integer)
(function template)
operator!=
performs comparison for inequality, wraps cmp_neq(floating-point) and cmp_neq(integer)
(function template)
operator>
performs comparison for greater than, wraps cmp_gt(floating-point) and cmp_gt(integer)
(function template)
operator>=
performs comparison for greater than or equal, wraps cmp_ge(floating-point)
(function template)
operator<
performs comparison for less than, wraps cmp_lt(floating-point) and cmp_lt(integer)
(function template)
operator<=
performs comparison for less than or equal, wraps cmp_le(floating-point)
(function template)