You copied the Doc URL to your clipboard.

C55x intrinsics

The ARM compiler supports the emulation of selected TI C55x compiler intrinsics.

To make use of the TI C55x intrinsics in your own code, include the standard header file c55x.h. The intrinsics supplied in c55x.h are listed in Table 24.

Table 24. TI C55x intrinsics supported by the compilation tools


The C55x intrinsics are only supported on targets that support the __qadd, __qdbl, and __qsub intrinsics. Otherwise, no error message is generated, instead the compiler silently generates a call to a corresponding function __qadd, __qdbl, or __qsub.


#include <limits.h>
#include <stdint.h>
#include <c55x.h>       // include TI C55x intrinsics
__asm int32_t asm_lsadd(int32_t a, int32_t b)
    qadd r0, r0, r1
    bx lr}
int32_t foo(int32_t a, int32_t b)
    int32_t c, d, e;
    c = asm_lsadd(a, b);  // assembly language saturating add
    d = __qadd(a, b);     // ARM intrinsic saturating add
    e = _lsadd(a, b);     // TI C55x saturating add
    return c == d == e;   // returns 1

See also

  • the header file c55x.h for more information on the ARM implementation of the C55x intrinsics

  • publications providing information about TI compiler intrinsics are available from Texas Instruments at