]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/doc/gcc/extensions-to-the-c-language-family/target-builtins/ti-c6x-built-in-functions.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / doc / gcc / extensions-to-the-c-language-family / target-builtins / ti-c6x-built-in-functions.rst
CommitLineData
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
8TI C6X Built-in Functions
9^^^^^^^^^^^^^^^^^^^^^^^^^
10
11GCC provides intrinsics to access certain instructions of the TI C6X
12processors. These intrinsics, listed below, are available after
13inclusion of the ``c6x_intrinsics.h`` header file. They map directly
14to 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);