DPC++ Runtime
Runtime libraries for oneAPI DPC++
C++ binary operators overloads for ESIMD.

Standard C++ binary operators overloads applicable to simd_obj_impl derivatives - simd , simd_mask , simd_view and their combinations.

Collaboration diagram for C++ binary operators overloads for ESIMD.:

Standard C++ binary operators overloads applicable to simd_obj_impl derivatives - simd , simd_mask , simd_view and their combinations.

The following overloads are defined:

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
== + + +
!= + + +
< + +
> + +
<= + +
>= + +