1 | /* |
2 | Copyright Charly Chevalier 2015 |
3 | Copyright Joel Falcou 2015 |
4 | Distributed under the Boost Software License, Version 1.0. |
5 | (See accompanying file LICENSE_1_0.txt or copy at |
6 | http://www.boost.org/LICENSE_1_0.txt) |
7 | */ |
8 | |
9 | #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H |
10 | #define BOOST_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H |
11 | |
12 | #include <boost/predef/version_number.h> |
13 | |
14 | /* tag::reference[] |
15 | = `BOOST_HW_SIMD_X86_*_VERSION` |
16 | |
17 | Those defines represent x86 SIMD extensions versions. |
18 | |
19 | NOTE: You *MUST* compare them with the predef `BOOST_HW_SIMD_X86`. |
20 | */ // end::reference[] |
21 | |
22 | // --------------------------------- |
23 | |
24 | /* tag::reference[] |
25 | = `BOOST_HW_SIMD_X86_MMX_VERSION` |
26 | |
27 | The https://en.wikipedia.org/wiki/MMX_(instruction_set)[MMX] x86 extension |
28 | version number. |
29 | |
30 | Version number is: *0.99.0*. |
31 | */ // end::reference[] |
32 | #define BOOST_HW_SIMD_X86_MMX_VERSION BOOST_VERSION_NUMBER(0, 99, 0) |
33 | |
34 | /* tag::reference[] |
35 | = `BOOST_HW_SIMD_X86_SSE_VERSION` |
36 | |
37 | The https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions[SSE] x86 extension |
38 | version number. |
39 | |
40 | Version number is: *1.0.0*. |
41 | */ // end::reference[] |
42 | #define BOOST_HW_SIMD_X86_SSE_VERSION BOOST_VERSION_NUMBER(1, 0, 0) |
43 | |
44 | /* tag::reference[] |
45 | = `BOOST_HW_SIMD_X86_SSE2_VERSION` |
46 | |
47 | The https://en.wikipedia.org/wiki/SSE2[SSE2] x86 extension version number. |
48 | |
49 | Version number is: *2.0.0*. |
50 | */ // end::reference[] |
51 | #define BOOST_HW_SIMD_X86_SSE2_VERSION BOOST_VERSION_NUMBER(2, 0, 0) |
52 | |
53 | /* tag::reference[] |
54 | = `BOOST_HW_SIMD_X86_SSE3_VERSION` |
55 | |
56 | The https://en.wikipedia.org/wiki/SSE3[SSE3] x86 extension version number. |
57 | |
58 | Version number is: *3.0.0*. |
59 | */ // end::reference[] |
60 | #define BOOST_HW_SIMD_X86_SSE3_VERSION BOOST_VERSION_NUMBER(3, 0, 0) |
61 | |
62 | /* tag::reference[] |
63 | = `BOOST_HW_SIMD_X86_SSSE3_VERSION` |
64 | |
65 | The https://en.wikipedia.org/wiki/SSSE3[SSSE3] x86 extension version number. |
66 | |
67 | Version number is: *3.1.0*. |
68 | */ // end::reference[] |
69 | #define BOOST_HW_SIMD_X86_SSSE3_VERSION BOOST_VERSION_NUMBER(3, 1, 0) |
70 | |
71 | /* tag::reference[] |
72 | = `BOOST_HW_SIMD_X86_SSE4_1_VERSION` |
73 | |
74 | The https://en.wikipedia.org/wiki/SSE4#SSE4.1[SSE4_1] x86 extension version |
75 | number. |
76 | |
77 | Version number is: *4.1.0*. |
78 | */ // end::reference[] |
79 | #define BOOST_HW_SIMD_X86_SSE4_1_VERSION BOOST_VERSION_NUMBER(4, 1, 0) |
80 | |
81 | /* tag::reference[] |
82 | = `BOOST_HW_SIMD_X86_SSE4_2_VERSION` |
83 | |
84 | The https://en.wikipedia.org/wiki/SSE4##SSE4.2[SSE4_2] x86 extension version |
85 | number. |
86 | |
87 | Version number is: *4.2.0*. |
88 | */ // end::reference[] |
89 | #define BOOST_HW_SIMD_X86_SSE4_2_VERSION BOOST_VERSION_NUMBER(4, 2, 0) |
90 | |
91 | /* tag::reference[] |
92 | = `BOOST_HW_SIMD_X86_AVX_VERSION` |
93 | |
94 | The https://en.wikipedia.org/wiki/Advanced_Vector_Extensions[AVX] x86 |
95 | extension version number. |
96 | |
97 | Version number is: *5.0.0*. |
98 | */ // end::reference[] |
99 | #define BOOST_HW_SIMD_X86_AVX_VERSION BOOST_VERSION_NUMBER(5, 0, 0) |
100 | |
101 | /* tag::reference[] |
102 | = `BOOST_HW_SIMD_X86_FMA3_VERSION` |
103 | |
104 | The https://en.wikipedia.org/wiki/FMA_instruction_set[FMA3] x86 extension |
105 | version number. |
106 | |
107 | Version number is: *5.2.0*. |
108 | */ // end::reference[] |
109 | #define BOOST_HW_SIMD_X86_FMA3_VERSION BOOST_VERSION_NUMBER(5, 2, 0) |
110 | |
111 | /* tag::reference[] |
112 | = `BOOST_HW_SIMD_X86_AVX2_VERSION` |
113 | |
114 | The https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2[AVX2] |
115 | x86 extension version number. |
116 | |
117 | Version number is: *5.3.0*. |
118 | */ // end::reference[] |
119 | #define BOOST_HW_SIMD_X86_AVX2_VERSION BOOST_VERSION_NUMBER(5, 3, 0) |
120 | |
121 | /* tag::reference[] |
122 | = `BOOST_HW_SIMD_X86_MIC_VERSION` |
123 | |
124 | The https://en.wikipedia.org/wiki/Xeon_Phi[MIC] (Xeon Phi) x86 extension |
125 | version number. |
126 | |
127 | Version number is: *9.0.0*. |
128 | */ // end::reference[] |
129 | #define BOOST_HW_SIMD_X86_MIC_VERSION BOOST_VERSION_NUMBER(9, 0, 0) |
130 | |
131 | /* tag::reference[] |
132 | |
133 | */ // end::reference[] |
134 | |
135 | #endif |
136 | |