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 />

}<br />

int32_t c, d, e, f;<br />

Overflow = 0;<br />

// set global overflow flag<br />

c = C_L_add(a, b); // C saturating add<br />

d = asm_L_add(a, b); // assembly language saturating add<br />

e = __qadd(a, b); // <strong>ARM</strong> intrinsic saturating add<br />

f = L_add(a, b); // ETSI saturating add<br />

return Overflow -1 : c == d == e == f; // returns 1, unless overflow<br />

See also<br />

• the header file dspfns.h for definitions of the ETSI basic operations as a<br />

combination of C code and intrinsics<br />

• ETSI basic operations on page 4-6 in the Compiler User Guide<br />

• ETSI Recommendation G.191: Software tools for speech and audio coding<br />

standardization<br />

• ITU-T Software Tool Library 2005 User's manual, included as part of ETSI<br />

Recommendation G.191<br />

• ETSI Recommendation G723.1 : Dual rate speech coder for multimedia<br />

communications transmitting at 5.3 and 6.3 kbit/s<br />

• ETSI Recommendation G.729: Coding of speech at 8 kbit/s using<br />

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

4.7.108 C55x intrinsics<br />

The <strong>ARM</strong> compiler supports the emulation of selected TI C55x compiler intrinsics.<br />

To make use of the TI C55x intrinsics in your own code, include the standard header file<br />

c55x.h. The intrinsics supplied in c55x.h are listed in Table 4-21.<br />

Table 4-21 TI C55x intrinsics supported in RVCT<br />

Intrinsics<br />

_abss _lshrs _rnd _smas<br />

_count _lsadd _norm _smpy<br />

_divs _lsmpy _round _sneg<br />

_labss _lsneg _roundn _sround<br />

_lmax _lsshl _sadd _sroundn<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!