The + (addition) operator yields the sum of its operands.
Result types | Left operand types | Right operand types |
---|---|---|
vector signed char | vector signed char | vector signed char |
vector signed char | vector bool char | |
vector bool char | vector signed char | |
vector unsigned char | vector unsigned char | vector unsigned char |
vector unsigned char | vector bool char | |
vector bool char | vector unsigned char | |
vector signed short | vector signed short | vector signed short |
vector signed short | vector bool short | |
vector bool short | vector signed short | |
vector unsigned short | vector unsigned short | vector unsigned short |
vector unsigned short | vector bool short | |
vector bool short | vector unsigned short | |
vector signed int | vector signed int | vector signed int |
vector signed int | vector bool int | |
vector bool int | vector signed int | |
vector unsigned int | vector unsigned int | vector unsigned int |
vector unsigned int | vector bool int | |
vector bool int | vector unsigned int | |
vector signed long long | vector signed long long | vector signed long long |
vector unsigned long long | vector unsigned long long | vector unsigned long long |
vector double | vector double | vector double |