Standard C++ binary operators overloads applicable to simd_obj_impl
derivatives - simd
, simd_mask
, simd_view
and their combinations.
Standard C++ binary operators overloads applicable to simd_obj_impl
derivatives - simd
, simd_mask
, simd_view
and their combinations.
The following overloads are defined:
simd_obj_impl
global operators:simd_obj_impl
BINOP simd_obj_impl
simd_obj_impl
BINOP SCALARsimd_obj_impl
simd_obj_impl
CMPOP simd_obj_impl
simd_obj_impl
CMPOP SCALARsimd_obj_impl
simd_view
global operators
simd_view
CMPOP simd_view
simd_view
CMPOP simd_obj_impl
simd_obj_impl
CMPOP simd_view
simd_view
CMPOP SCALARsimd_view
Some operations are enabled only for particular element type and/or simd object type (simd or simd_mask):
The tables below provides more details about supported overloads.
Binary operators:
simd/simd_view (integer) | simd/simd_view (floating point) | simd_mask | |
---|---|---|---|
+ | + | + | |
- | + | + | |
* | + | + | |
/ | + | + | |
% | + | ||
<< | + | ||
>> | + | ||
^ | + | + | |
| | + | + | |
& | + | + | |
|| | + | ||
&& | + |
Comparison operators
simd/simd_view (integer) | simd/simd_view (floating point) | simd_mask | |
---|---|---|---|
== | + | + | + |
!= | + | + | + |
< | + | + | |
> | + | + | |
<= | + | + | |
>= | + | + |