|
|||||||||||
|
Technical Support On-Line Manuals Compiler Reference Guide |
Compiler Reference Guide__uadd8 intrinsic
This intrinsic inserts a The GE bits in the APSR are set according to the results. unsigned int __uadd8(unsigned int where:
The
Each bit in APSR.GE is set or cleared for each byte in the
return value, depending on the results of the operation. If
Example:
unsigned int add_bytes(unsigned int val1, unsigned int val2)
{
unsigned int res;
res = __uadd8(val1,val2); /* res[7:0] = val1[7:0] + val2[7:0]
res[15:8] = val1[15:8] + val2[15:8]
res[23:16] = val1[23:16] + val2[23:16]
res[31:24] = val1[31:24] + val2[31:24]
*/
return res;
}
| ||||||||||
|
|||||||||||