]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. _ti-c6x-built-in-functions: | |
7 | ||
8 | TI C6X Built-in Functions | |
9 | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
10 | ||
11 | GCC provides intrinsics to access certain instructions of the TI C6X | |
12 | processors. These intrinsics, listed below, are available after | |
13 | inclusion of the ``c6x_intrinsics.h`` header file. They map directly | |
14 | to C6X instructions. | |
15 | ||
16 | .. code-block:: c++ | |
17 | ||
18 | int _sadd (int, int); | |
19 | int _ssub (int, int); | |
20 | int _sadd2 (int, int); | |
21 | int _ssub2 (int, int); | |
22 | long long _mpy2 (int, int); | |
23 | long long _smpy2 (int, int); | |
24 | int _add4 (int, int); | |
25 | int _sub4 (int, int); | |
26 | int _saddu4 (int, int); | |
27 | ||
28 | int _smpy (int, int); | |
29 | int _smpyh (int, int); | |
30 | int _smpyhl (int, int); | |
31 | int _smpylh (int, int); | |
32 | ||
33 | int _sshl (int, int); | |
34 | int _subc (int, int); | |
35 | ||
36 | int _avg2 (int, int); | |
37 | int _avgu4 (int, int); | |
38 | ||
39 | int _clrr (int, int); | |
40 | int _extr (int, int); | |
41 | int _extru (int, int); | |
42 | int _abs (int); | |
3ed1b4ce | 43 | int _abs2 (int); |