1
1
.. SPDX-FileCopyrightText: 2019-2021 Intel Corporation
2
+ .. SPDX-FileCopyrightText: Contributors to the oneAPI Specification project.
2
3
..
3
4
.. SPDX-License-Identifier: CC-BY-4.0
4
5
@@ -14,6 +15,8 @@ version and runtime information.
14
15
15
16
// Defined in header <oneapi/tbb/version.h>
16
17
18
+ #define ONETBB_SPEC_VERSION /*implementation-defined*/
19
+
17
20
#define TBB_VERSION_MAJOR /*implementation-defined*/
18
21
#define TBB_VERSION_MINOR /*implementation-defined*/
19
22
#define TBB_VERSION_STRING /*implementation-defined*/
@@ -25,16 +28,21 @@ version and runtime information.
25
28
const char* TBB_runtime_version();
26
29
int TBB_runtime_interface_version();
27
30
28
- **Version Macros **
31
+ Version Macros
32
+ --------------
29
33
30
34
oneTBB defines macros related to versioning, as described below.
31
35
36
+ * ``ONETBB_SPEC_VERSION `` macro defined to the decimal literal whose value equals to
37
+ ``x * 100 + y ``, where ``x `` is the major version and ``y `` is the minor version
38
+ of the latest specification of oneTBB fully supported by the implementation.
32
39
* ``TBB_VERSION_MAJOR `` macro defined to integral value that represents major library version.
33
40
* ``TBB_VERSION_MINOR `` macro defined to integral value that represents minor library version.
34
41
* ``TBB_VERSION_STRING `` macro defined to the string representation of the full library version.
35
- * ``TBB_INTERFACE_VERSION `` macro defined to current interface version. The value is a decimal
36
- numeral of the form ``xyyz `` where ``x `` is the major interface version number and ``y `` is the
37
- minor interface version number. This macro is increased in each release.
42
+ * ``TBB_INTERFACE_VERSION `` macro defined to a decimal literal for the current interface version.
43
+ The value of the literal equals to ``x * 1000 + y * 10 + z `` where ``x `` is the major interface
44
+ version number, ``y `` is the minor interface version number, and ``z `` is a decimal digit.
45
+ This macro is increased in each release.
38
46
* ``TBB_INTERFACE_VERSION_MAJOR `` macro defined to ``TBB_INTERFACE_VERSION/1000 ``, which is the
39
47
major interface version number.
40
48
* ``TBB_INTERFACE_VERSION_MINOR `` macro defined to ``TBB_INTERFACE_VERSION%1000/10 ``, which is the
0 commit comments