04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler-specific Features<br />

4.7.106 __uxtb16 intrinsic<br />

This intrinsic inserts a UXTB16 instruction into the instruction stream generated by the<br />

compiler. It enables you to extract two 8-bit values from an operand and zero-extend<br />

them to 16 bits each.<br />

unsigned int __uxtb16(unsigned int val)<br />

Where val[7:0] and val[23:16] hold the two 8-bit values to be sign-extended.<br />

The __uxtb16 intrinsic returns the 8-bit values zero-extended to 16-bit values.<br />

Example:<br />

unsigned int zero_extend(unsigned int val)<br />

{<br />

unsigned int res;<br />

}<br />

res = __uxtb16(val1,val2); /* res[15:0] = ZeroExtended(val[7:0])<br />

res[31:16] = ZeroExtended(val[23:16])<br />

*/<br />

return res;<br />

See also<br />

• <strong>ARM</strong>v6 SIMD intrinsics on page 4-109<br />

• Instruction summary on page 4-2 in the Assembler Guide<br />

• SXT, SXTA, UXT, and UXTA on page 4-109 in the Assembler Guide.<br />

4.7.107 ETSI basic operations<br />

RVCT supports for the original ETSI family of basic operations described in the ETSI<br />

G.729 recommendation Coding of speech at 8 kbit/s using conjugate-structure<br />

algebraic-code-excited linear prediction (CS-ACELP).<br />

To make use of the ETSI basic operations in your own code, include the standard header<br />

file dspfns.h. The intrinsics supplied in dspfns.h are listed in Table 4-19.<br />

Table 4-19 ETSI basic operations supported in RVCT<br />

Intrinsics<br />

abs_s L_add_c L_mult L_sub_c norm_l<br />

add L_deposit_h L_negate mac_r round<br />

div_s L_deposit_l L_sat msu_r saturate<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 4-187<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!