This intrinsic inserts a QADD instruction or an equivalent code sequence into the instruction stream generated by the compiler. It enables you to obtain the saturating add of two integers from within your C or C++ code.
int __qadd(int val1, int val2)
Where:
val1is the first summand of the saturating add operation
val2is the second summand of the saturating add operation.
The __qadd intrinsic returns the saturating add of val1 and val2.