|
1 | 1 | // AUTOGENERATED, DO NOT EDIT
|
2 | 2 |
|
3 | 3 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSE
|
| 4 | +# define CV_TRY_SSE 1 |
4 | 5 | # define CV_CPU_HAS_SUPPORT_SSE 1
|
5 | 6 | # define CV_CPU_CALL_SSE(fn, args) return (opt_SSE::fn args)
|
6 | 7 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSE
|
| 8 | +# define CV_TRY_SSE 1 |
7 | 9 | # define CV_CPU_HAS_SUPPORT_SSE (cv::checkHardwareSupport(CV_CPU_SSE))
|
8 | 10 | # define CV_CPU_CALL_SSE(fn, args) if (CV_CPU_HAS_SUPPORT_SSE) return (opt_SSE::fn args)
|
9 | 11 | #else
|
| 12 | +# define CV_TRY_SSE 0 |
10 | 13 | # define CV_CPU_HAS_SUPPORT_SSE 0
|
11 | 14 | # define CV_CPU_CALL_SSE(fn, args)
|
12 | 15 | #endif
|
13 | 16 | #define __CV_CPU_DISPATCH_CHAIN_SSE(fn, args, mode, ...) CV_CPU_CALL_SSE(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
14 | 17 |
|
15 | 18 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSE2
|
| 19 | +# define CV_TRY_SSE2 1 |
16 | 20 | # define CV_CPU_HAS_SUPPORT_SSE2 1
|
17 | 21 | # define CV_CPU_CALL_SSE2(fn, args) return (opt_SSE2::fn args)
|
18 | 22 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSE2
|
| 23 | +# define CV_TRY_SSE2 1 |
19 | 24 | # define CV_CPU_HAS_SUPPORT_SSE2 (cv::checkHardwareSupport(CV_CPU_SSE2))
|
20 | 25 | # define CV_CPU_CALL_SSE2(fn, args) if (CV_CPU_HAS_SUPPORT_SSE2) return (opt_SSE2::fn args)
|
21 | 26 | #else
|
| 27 | +# define CV_TRY_SSE2 0 |
22 | 28 | # define CV_CPU_HAS_SUPPORT_SSE2 0
|
23 | 29 | # define CV_CPU_CALL_SSE2(fn, args)
|
24 | 30 | #endif
|
25 | 31 | #define __CV_CPU_DISPATCH_CHAIN_SSE2(fn, args, mode, ...) CV_CPU_CALL_SSE2(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
26 | 32 |
|
27 | 33 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSE3
|
| 34 | +# define CV_TRY_SSE3 1 |
28 | 35 | # define CV_CPU_HAS_SUPPORT_SSE3 1
|
29 | 36 | # define CV_CPU_CALL_SSE3(fn, args) return (opt_SSE3::fn args)
|
30 | 37 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSE3
|
| 38 | +# define CV_TRY_SSE3 1 |
31 | 39 | # define CV_CPU_HAS_SUPPORT_SSE3 (cv::checkHardwareSupport(CV_CPU_SSE3))
|
32 | 40 | # define CV_CPU_CALL_SSE3(fn, args) if (CV_CPU_HAS_SUPPORT_SSE3) return (opt_SSE3::fn args)
|
33 | 41 | #else
|
| 42 | +# define CV_TRY_SSE3 0 |
34 | 43 | # define CV_CPU_HAS_SUPPORT_SSE3 0
|
35 | 44 | # define CV_CPU_CALL_SSE3(fn, args)
|
36 | 45 | #endif
|
37 | 46 | #define __CV_CPU_DISPATCH_CHAIN_SSE3(fn, args, mode, ...) CV_CPU_CALL_SSE3(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
38 | 47 |
|
39 | 48 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSSE3
|
| 49 | +# define CV_TRY_SSSE3 1 |
40 | 50 | # define CV_CPU_HAS_SUPPORT_SSSE3 1
|
41 | 51 | # define CV_CPU_CALL_SSSE3(fn, args) return (opt_SSSE3::fn args)
|
42 | 52 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSSE3
|
| 53 | +# define CV_TRY_SSSE3 1 |
43 | 54 | # define CV_CPU_HAS_SUPPORT_SSSE3 (cv::checkHardwareSupport(CV_CPU_SSSE3))
|
44 | 55 | # define CV_CPU_CALL_SSSE3(fn, args) if (CV_CPU_HAS_SUPPORT_SSSE3) return (opt_SSSE3::fn args)
|
45 | 56 | #else
|
| 57 | +# define CV_TRY_SSSE3 0 |
46 | 58 | # define CV_CPU_HAS_SUPPORT_SSSE3 0
|
47 | 59 | # define CV_CPU_CALL_SSSE3(fn, args)
|
48 | 60 | #endif
|
49 | 61 | #define __CV_CPU_DISPATCH_CHAIN_SSSE3(fn, args, mode, ...) CV_CPU_CALL_SSSE3(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
50 | 62 |
|
51 | 63 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSE4_1
|
| 64 | +# define CV_TRY_SSE4_1 1 |
52 | 65 | # define CV_CPU_HAS_SUPPORT_SSE4_1 1
|
53 | 66 | # define CV_CPU_CALL_SSE4_1(fn, args) return (opt_SSE4_1::fn args)
|
54 | 67 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSE4_1
|
| 68 | +# define CV_TRY_SSE4_1 1 |
55 | 69 | # define CV_CPU_HAS_SUPPORT_SSE4_1 (cv::checkHardwareSupport(CV_CPU_SSE4_1))
|
56 | 70 | # define CV_CPU_CALL_SSE4_1(fn, args) if (CV_CPU_HAS_SUPPORT_SSE4_1) return (opt_SSE4_1::fn args)
|
57 | 71 | #else
|
| 72 | +# define CV_TRY_SSE4_1 0 |
58 | 73 | # define CV_CPU_HAS_SUPPORT_SSE4_1 0
|
59 | 74 | # define CV_CPU_CALL_SSE4_1(fn, args)
|
60 | 75 | #endif
|
61 | 76 | #define __CV_CPU_DISPATCH_CHAIN_SSE4_1(fn, args, mode, ...) CV_CPU_CALL_SSE4_1(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
62 | 77 |
|
63 | 78 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_SSE4_2
|
| 79 | +# define CV_TRY_SSE4_2 1 |
64 | 80 | # define CV_CPU_HAS_SUPPORT_SSE4_2 1
|
65 | 81 | # define CV_CPU_CALL_SSE4_2(fn, args) return (opt_SSE4_2::fn args)
|
66 | 82 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_SSE4_2
|
| 83 | +# define CV_TRY_SSE4_2 1 |
67 | 84 | # define CV_CPU_HAS_SUPPORT_SSE4_2 (cv::checkHardwareSupport(CV_CPU_SSE4_2))
|
68 | 85 | # define CV_CPU_CALL_SSE4_2(fn, args) if (CV_CPU_HAS_SUPPORT_SSE4_2) return (opt_SSE4_2::fn args)
|
69 | 86 | #else
|
| 87 | +# define CV_TRY_SSE4_2 0 |
70 | 88 | # define CV_CPU_HAS_SUPPORT_SSE4_2 0
|
71 | 89 | # define CV_CPU_CALL_SSE4_2(fn, args)
|
72 | 90 | #endif
|
73 | 91 | #define __CV_CPU_DISPATCH_CHAIN_SSE4_2(fn, args, mode, ...) CV_CPU_CALL_SSE4_2(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
74 | 92 |
|
75 | 93 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_POPCNT
|
| 94 | +# define CV_TRY_POPCNT 1 |
76 | 95 | # define CV_CPU_HAS_SUPPORT_POPCNT 1
|
77 | 96 | # define CV_CPU_CALL_POPCNT(fn, args) return (opt_POPCNT::fn args)
|
78 | 97 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_POPCNT
|
| 98 | +# define CV_TRY_POPCNT 1 |
79 | 99 | # define CV_CPU_HAS_SUPPORT_POPCNT (cv::checkHardwareSupport(CV_CPU_POPCNT))
|
80 | 100 | # define CV_CPU_CALL_POPCNT(fn, args) if (CV_CPU_HAS_SUPPORT_POPCNT) return (opt_POPCNT::fn args)
|
81 | 101 | #else
|
| 102 | +# define CV_TRY_POPCNT 0 |
82 | 103 | # define CV_CPU_HAS_SUPPORT_POPCNT 0
|
83 | 104 | # define CV_CPU_CALL_POPCNT(fn, args)
|
84 | 105 | #endif
|
85 | 106 | #define __CV_CPU_DISPATCH_CHAIN_POPCNT(fn, args, mode, ...) CV_CPU_CALL_POPCNT(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
86 | 107 |
|
87 | 108 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_AVX
|
| 109 | +# define CV_TRY_AVX 1 |
88 | 110 | # define CV_CPU_HAS_SUPPORT_AVX 1
|
89 | 111 | # define CV_CPU_CALL_AVX(fn, args) return (opt_AVX::fn args)
|
90 | 112 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_AVX
|
| 113 | +# define CV_TRY_AVX 1 |
91 | 114 | # define CV_CPU_HAS_SUPPORT_AVX (cv::checkHardwareSupport(CV_CPU_AVX))
|
92 | 115 | # define CV_CPU_CALL_AVX(fn, args) if (CV_CPU_HAS_SUPPORT_AVX) return (opt_AVX::fn args)
|
93 | 116 | #else
|
| 117 | +# define CV_TRY_AVX 0 |
94 | 118 | # define CV_CPU_HAS_SUPPORT_AVX 0
|
95 | 119 | # define CV_CPU_CALL_AVX(fn, args)
|
96 | 120 | #endif
|
97 | 121 | #define __CV_CPU_DISPATCH_CHAIN_AVX(fn, args, mode, ...) CV_CPU_CALL_AVX(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
98 | 122 |
|
99 | 123 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_FP16
|
| 124 | +# define CV_TRY_FP16 1 |
100 | 125 | # define CV_CPU_HAS_SUPPORT_FP16 1
|
101 | 126 | # define CV_CPU_CALL_FP16(fn, args) return (opt_FP16::fn args)
|
102 | 127 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_FP16
|
| 128 | +# define CV_TRY_FP16 1 |
103 | 129 | # define CV_CPU_HAS_SUPPORT_FP16 (cv::checkHardwareSupport(CV_CPU_FP16))
|
104 | 130 | # define CV_CPU_CALL_FP16(fn, args) if (CV_CPU_HAS_SUPPORT_FP16) return (opt_FP16::fn args)
|
105 | 131 | #else
|
| 132 | +# define CV_TRY_FP16 0 |
106 | 133 | # define CV_CPU_HAS_SUPPORT_FP16 0
|
107 | 134 | # define CV_CPU_CALL_FP16(fn, args)
|
108 | 135 | #endif
|
109 | 136 | #define __CV_CPU_DISPATCH_CHAIN_FP16(fn, args, mode, ...) CV_CPU_CALL_FP16(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
110 | 137 |
|
111 | 138 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_AVX2
|
| 139 | +# define CV_TRY_AVX2 1 |
112 | 140 | # define CV_CPU_HAS_SUPPORT_AVX2 1
|
113 | 141 | # define CV_CPU_CALL_AVX2(fn, args) return (opt_AVX2::fn args)
|
114 | 142 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_AVX2
|
| 143 | +# define CV_TRY_AVX2 1 |
115 | 144 | # define CV_CPU_HAS_SUPPORT_AVX2 (cv::checkHardwareSupport(CV_CPU_AVX2))
|
116 | 145 | # define CV_CPU_CALL_AVX2(fn, args) if (CV_CPU_HAS_SUPPORT_AVX2) return (opt_AVX2::fn args)
|
117 | 146 | #else
|
| 147 | +# define CV_TRY_AVX2 0 |
118 | 148 | # define CV_CPU_HAS_SUPPORT_AVX2 0
|
119 | 149 | # define CV_CPU_CALL_AVX2(fn, args)
|
120 | 150 | #endif
|
121 | 151 | #define __CV_CPU_DISPATCH_CHAIN_AVX2(fn, args, mode, ...) CV_CPU_CALL_AVX2(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
122 | 152 |
|
123 | 153 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_FMA3
|
| 154 | +# define CV_TRY_FMA3 1 |
124 | 155 | # define CV_CPU_HAS_SUPPORT_FMA3 1
|
125 | 156 | # define CV_CPU_CALL_FMA3(fn, args) return (opt_FMA3::fn args)
|
126 | 157 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_FMA3
|
| 158 | +# define CV_TRY_FMA3 1 |
127 | 159 | # define CV_CPU_HAS_SUPPORT_FMA3 (cv::checkHardwareSupport(CV_CPU_FMA3))
|
128 | 160 | # define CV_CPU_CALL_FMA3(fn, args) if (CV_CPU_HAS_SUPPORT_FMA3) return (opt_FMA3::fn args)
|
129 | 161 | #else
|
| 162 | +# define CV_TRY_FMA3 0 |
130 | 163 | # define CV_CPU_HAS_SUPPORT_FMA3 0
|
131 | 164 | # define CV_CPU_CALL_FMA3(fn, args)
|
132 | 165 | #endif
|
133 | 166 | #define __CV_CPU_DISPATCH_CHAIN_FMA3(fn, args, mode, ...) CV_CPU_CALL_FMA3(fn, args); __CV_EXPAND(__CV_CPU_DISPATCH_CHAIN_ ## mode(fn, args, __VA_ARGS__))
|
134 | 167 |
|
135 | 168 | #if !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_COMPILE_NEON
|
| 169 | +# define CV_TRY_NEON 1 |
136 | 170 | # define CV_CPU_HAS_SUPPORT_NEON 1
|
137 | 171 | # define CV_CPU_CALL_NEON(fn, args) return (opt_NEON::fn args)
|
138 | 172 | #elif !defined CV_DISABLE_OPTIMIZATION && defined CV_ENABLE_INTRINSICS && defined CV_CPU_DISPATCH_COMPILE_NEON
|
| 173 | +# define CV_TRY_NEON 1 |
139 | 174 | # define CV_CPU_HAS_SUPPORT_NEON (cv::checkHardwareSupport(CV_CPU_NEON))
|
140 | 175 | # define CV_CPU_CALL_NEON(fn, args) if (CV_CPU_HAS_SUPPORT_NEON) return (opt_NEON::fn args)
|
141 | 176 | #else
|
| 177 | +# define CV_TRY_NEON 0 |
142 | 178 | # define CV_CPU_HAS_SUPPORT_NEON 0
|
143 | 179 | # define CV_CPU_CALL_NEON(fn, args)
|
144 | 180 | #endif
|
|
0 commit comments