This intrinsic inserts a UXTB16 instruction into
the instruction stream generated by the compiler. It enables you
to extract two 8-bit values from an operand and zero-extend them
to 16 bits each.
unsigned int __uxtb16(unsigned int val)
where val[7:0]
and val[23:16] hold
the two 8-bit values to be zero-extended.
The __uxtb16 intrinsic returns the 8-bit
values zero-extended to 16-bit values.
Example:
unsigned int zero_extend(unsigned int val)
{
unsigned int res;
res = __uxtb16(val1,val2); /* res[15:0] = ZeroExtended(val[7:0])
res[31:16] = ZeroExtended(val[23:16])
*/
return res;
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.