Remainder operator %
The % (remainder) operator yields the remainder from the division of the left operand by the right operand.
The following
table lists the vector data types accepted as the operands, and the
corresponding returned vector data types:
Result types | Left operand types | Right operand types |
---|---|---|
vector signed char | vector signed char | vector signed char |
vector unsigned char | vector unsigned char | vector unsigned char |
vector signed short | vector signed short | vector signed short |
vector unsigned short | vector unsigned short | vector unsigned short |
vector signed int | vector signed int | vector signed int |
vector unsigned int | vector unsigned 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 |