intrin.hpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. /*M///////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
  4. //
  5. // By downloading, copying, installing or using the software you agree to this license.
  6. // If you do not agree to this license, do not download, install,
  7. // copy or use the software.
  8. //
  9. //
  10. // License Agreement
  11. // For Open Source Computer Vision Library
  12. //
  13. // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
  14. // Copyright (C) 2009, Willow Garage Inc., all rights reserved.
  15. // Copyright (C) 2013, OpenCV Foundation, all rights reserved.
  16. // Copyright (C) 2015, Itseez Inc., all rights reserved.
  17. // Third party copyrights are property of their respective owners.
  18. //
  19. // Redistribution and use in source and binary forms, with or without modification,
  20. // are permitted provided that the following conditions are met:
  21. //
  22. // * Redistribution's of source code must retain the above copyright notice,
  23. // this list of conditions and the following disclaimer.
  24. //
  25. // * Redistribution's in binary form must reproduce the above copyright notice,
  26. // this list of conditions and the following disclaimer in the documentation
  27. // and/or other materials provided with the distribution.
  28. //
  29. // * The name of the copyright holders may not be used to endorse or promote products
  30. // derived from this software without specific prior written permission.
  31. //
  32. // This software is provided by the copyright holders and contributors "as is" and
  33. // any express or implied warranties, including, but not limited to, the implied
  34. // warranties of merchantability and fitness for a particular purpose are disclaimed.
  35. // In no event shall the Intel Corporation or contributors be liable for any direct,
  36. // indirect, incidental, special, exemplary, or consequential damages
  37. // (including, but not limited to, procurement of substitute goods or services;
  38. // loss of use, data, or profits; or business interruption) however caused
  39. // and on any theory of liability, whether in contract, strict liability,
  40. // or tort (including negligence or otherwise) arising in any way out of
  41. // the use of this software, even if advised of the possibility of such damage.
  42. //
  43. //M*/
  44. #ifndef OPENCV_HAL_INTRIN_HPP
  45. #define OPENCV_HAL_INTRIN_HPP
  46. #include <cmath>
  47. #include <float.h>
  48. #include <stdlib.h>
  49. #include "opencv2/core/cvdef.h"
  50. #define OPENCV_HAL_ADD(a, b) ((a) + (b))
  51. #define OPENCV_HAL_AND(a, b) ((a) & (b))
  52. #define OPENCV_HAL_NOP(a) (a)
  53. #define OPENCV_HAL_1ST(a, b) (a)
  54. // unlike HAL API, which is in cv::hal,
  55. // we put intrinsics into cv namespace to make its
  56. // access from within opencv code more accessible
  57. namespace cv {
  58. namespace hal {
  59. enum StoreMode
  60. {
  61. STORE_UNALIGNED = 0,
  62. STORE_ALIGNED = 1,
  63. STORE_ALIGNED_NOCACHE = 2
  64. };
  65. }
  66. template<typename _Tp> struct V_TypeTraits
  67. {
  68. };
  69. #define CV_INTRIN_DEF_TYPE_TRAITS(type, int_type_, uint_type_, abs_type_, w_type_, q_type_, sum_type_, nlanes128_) \
  70. template<> struct V_TypeTraits<type> \
  71. { \
  72. typedef type value_type; \
  73. typedef int_type_ int_type; \
  74. typedef abs_type_ abs_type; \
  75. typedef uint_type_ uint_type; \
  76. typedef w_type_ w_type; \
  77. typedef q_type_ q_type; \
  78. typedef sum_type_ sum_type; \
  79. enum { nlanes128 = nlanes128_ }; \
  80. \
  81. static inline int_type reinterpret_int(type x) \
  82. { \
  83. union { type l; int_type i; } v; \
  84. v.l = x; \
  85. return v.i; \
  86. } \
  87. \
  88. static inline type reinterpret_from_int(int_type x) \
  89. { \
  90. union { type l; int_type i; } v; \
  91. v.i = x; \
  92. return v.l; \
  93. } \
  94. }
  95. CV_INTRIN_DEF_TYPE_TRAITS(uchar, schar, uchar, uchar, ushort, unsigned, unsigned, 16);
  96. CV_INTRIN_DEF_TYPE_TRAITS(schar, schar, uchar, uchar, short, int, int, 16);
  97. CV_INTRIN_DEF_TYPE_TRAITS(ushort, short, ushort, ushort, unsigned, uint64, unsigned, 8);
  98. CV_INTRIN_DEF_TYPE_TRAITS(short, short, ushort, ushort, int, int64, int, 8);
  99. CV_INTRIN_DEF_TYPE_TRAITS(unsigned, int, unsigned, unsigned, uint64, void, unsigned, 4);
  100. CV_INTRIN_DEF_TYPE_TRAITS(int, int, unsigned, unsigned, int64, void, int, 4);
  101. CV_INTRIN_DEF_TYPE_TRAITS(float, int, unsigned, float, double, void, float, 4);
  102. CV_INTRIN_DEF_TYPE_TRAITS(uint64, int64, uint64, uint64, void, void, uint64, 2);
  103. CV_INTRIN_DEF_TYPE_TRAITS(int64, int64, uint64, uint64, void, void, int64, 2);
  104. CV_INTRIN_DEF_TYPE_TRAITS(double, int64, uint64, double, void, void, double, 2);
  105. #ifndef CV_DOXYGEN
  106. #ifdef CV_CPU_DISPATCH_MODE
  107. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE __CV_CAT(hal_, CV_CPU_DISPATCH_MODE)
  108. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE_BEGIN namespace __CV_CAT(hal_, CV_CPU_DISPATCH_MODE) {
  109. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE_END }
  110. #else
  111. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE hal_baseline
  112. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE_BEGIN namespace hal_baseline {
  113. #define CV_CPU_OPTIMIZATION_HAL_NAMESPACE_END }
  114. #endif
  115. CV_CPU_OPTIMIZATION_HAL_NAMESPACE_BEGIN
  116. CV_CPU_OPTIMIZATION_HAL_NAMESPACE_END
  117. using namespace CV_CPU_OPTIMIZATION_HAL_NAMESPACE;
  118. #endif
  119. }
  120. #ifdef CV_DOXYGEN
  121. # undef CV_AVX2
  122. # undef CV_SSE2
  123. # undef CV_NEON
  124. # undef CV_VSX
  125. # undef CV_FP16
  126. #endif
  127. #if CV_SSE2 || CV_NEON || CV_VSX
  128. #define CV__SIMD_FORWARD 128
  129. #include "opencv2/core/hal/intrin_forward.hpp"
  130. #endif
  131. #if CV_SSE2
  132. #include "opencv2/core/hal/intrin_sse_em.hpp"
  133. #include "opencv2/core/hal/intrin_sse.hpp"
  134. #elif CV_NEON
  135. #include "opencv2/core/hal/intrin_neon.hpp"
  136. #elif CV_VSX
  137. #include "opencv2/core/hal/intrin_vsx.hpp"
  138. #else
  139. #define CV_SIMD128_CPP 1
  140. #include "opencv2/core/hal/intrin_cpp.hpp"
  141. #endif
  142. // AVX2 can be used together with SSE2, so
  143. // we define those two sets of intrinsics at once.
  144. // Most of the intrinsics do not conflict (the proper overloaded variant is
  145. // resolved by the argument types, e.g. v_float32x4 ~ SSE2, v_float32x8 ~ AVX2),
  146. // but some of AVX2 intrinsics get v256_ prefix instead of v_, e.g. v256_load() vs v_load().
  147. // Correspondingly, the wide intrinsics (which are mapped to the "widest"
  148. // available instruction set) will get vx_ prefix
  149. // (and will be mapped to v256_ counterparts) (e.g. vx_load() => v256_load())
  150. #if CV_AVX2
  151. #define CV__SIMD_FORWARD 256
  152. #include "opencv2/core/hal/intrin_forward.hpp"
  153. #include "opencv2/core/hal/intrin_avx.hpp"
  154. #endif
  155. //! @cond IGNORED
  156. namespace cv {
  157. #ifndef CV_DOXYGEN
  158. CV_CPU_OPTIMIZATION_HAL_NAMESPACE_BEGIN
  159. #endif
  160. #ifndef CV_SIMD128
  161. #define CV_SIMD128 0
  162. #endif
  163. #ifndef CV_SIMD128_64F
  164. #define CV_SIMD128_64F 0
  165. #endif
  166. #ifndef CV_SIMD256
  167. #define CV_SIMD256 0
  168. #endif
  169. #ifndef CV_SIMD256_64F
  170. #define CV_SIMD256_64F 0
  171. #endif
  172. #ifndef CV_SIMD512
  173. #define CV_SIMD512 0
  174. #endif
  175. #ifndef CV_SIMD512_64F
  176. #define CV_SIMD512_64F 0
  177. #endif
  178. #ifndef CV_SIMD128_FP16
  179. #define CV_SIMD128_FP16 0
  180. #endif
  181. #ifndef CV_SIMD256_FP16
  182. #define CV_SIMD256_FP16 0
  183. #endif
  184. #ifndef CV_SIMD512_FP16
  185. #define CV_SIMD512_FP16 0
  186. #endif
  187. //==================================================================================================
  188. #define CV_INTRIN_DEFINE_WIDE_INTRIN(typ, vtyp, short_typ, prefix, loadsfx) \
  189. inline vtyp vx_setall_##short_typ(typ v) { return prefix##_setall_##short_typ(v); } \
  190. inline vtyp vx_setzero_##short_typ() { return prefix##_setzero_##short_typ(); } \
  191. inline vtyp vx_##loadsfx(const typ* ptr) { return prefix##_##loadsfx(ptr); } \
  192. inline vtyp vx_##loadsfx##_aligned(const typ* ptr) { return prefix##_##loadsfx##_aligned(ptr); } \
  193. inline vtyp vx_##loadsfx##_low(const typ* ptr) { return prefix##_##loadsfx##_low(ptr); } \
  194. inline vtyp vx_##loadsfx##_halves(const typ* ptr0, const typ* ptr1) { return prefix##_##loadsfx##_halves(ptr0, ptr1); } \
  195. inline void vx_store(typ* ptr, const vtyp& v) { return v_store(ptr, v); } \
  196. inline void vx_store_aligned(typ* ptr, const vtyp& v) { return v_store_aligned(ptr, v); } \
  197. inline vtyp vx_lut(const typ* ptr, const int* idx) { return prefix##_lut(ptr, idx); } \
  198. inline vtyp vx_lut_pairs(const typ* ptr, const int* idx) { return prefix##_lut_pairs(ptr, idx); }
  199. #define CV_INTRIN_DEFINE_WIDE_LUT_QUAD(typ, vtyp, prefix) \
  200. inline vtyp vx_lut_quads(const typ* ptr, const int* idx) { return prefix##_lut_quads(ptr, idx); }
  201. #define CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(typ, wtyp, prefix) \
  202. inline wtyp vx_load_expand(const typ* ptr) { return prefix##_load_expand(ptr); }
  203. #define CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND_Q(typ, qtyp, prefix) \
  204. inline qtyp vx_load_expand_q(const typ* ptr) { return prefix##_load_expand_q(ptr); }
  205. #define CV_INTRIN_DEFINE_WIDE_INTRIN_WITH_EXPAND(typ, vtyp, short_typ, wtyp, qtyp, prefix, loadsfx) \
  206. CV_INTRIN_DEFINE_WIDE_INTRIN(typ, vtyp, short_typ, prefix, loadsfx) \
  207. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(typ, vtyp, prefix) \
  208. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(typ, wtyp, prefix) \
  209. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND_Q(typ, qtyp, prefix)
  210. #define CV_INTRIN_DEFINE_WIDE_INTRIN_ALL_TYPES(prefix) \
  211. CV_INTRIN_DEFINE_WIDE_INTRIN_WITH_EXPAND(uchar, v_uint8, u8, v_uint16, v_uint32, prefix, load) \
  212. CV_INTRIN_DEFINE_WIDE_INTRIN_WITH_EXPAND(schar, v_int8, s8, v_int16, v_int32, prefix, load) \
  213. CV_INTRIN_DEFINE_WIDE_INTRIN(ushort, v_uint16, u16, prefix, load) \
  214. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(ushort, v_uint16, prefix) \
  215. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(ushort, v_uint32, prefix) \
  216. CV_INTRIN_DEFINE_WIDE_INTRIN(short, v_int16, s16, prefix, load) \
  217. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(short, v_int16, prefix) \
  218. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(short, v_int32, prefix) \
  219. CV_INTRIN_DEFINE_WIDE_INTRIN(int, v_int32, s32, prefix, load) \
  220. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(int, v_int32, prefix) \
  221. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(int, v_int64, prefix) \
  222. CV_INTRIN_DEFINE_WIDE_INTRIN(unsigned, v_uint32, u32, prefix, load) \
  223. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(unsigned, v_uint32, prefix) \
  224. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(unsigned, v_uint64, prefix) \
  225. CV_INTRIN_DEFINE_WIDE_INTRIN(float, v_float32, f32, prefix, load) \
  226. CV_INTRIN_DEFINE_WIDE_LUT_QUAD(float, v_float32, prefix) \
  227. CV_INTRIN_DEFINE_WIDE_INTRIN(int64, v_int64, s64, prefix, load) \
  228. CV_INTRIN_DEFINE_WIDE_INTRIN(uint64, v_uint64, u64, prefix, load) \
  229. CV_INTRIN_DEFINE_WIDE_LOAD_EXPAND(float16_t, v_float32, prefix)
  230. template<typename _Tp> struct V_RegTraits
  231. {
  232. };
  233. #define CV_DEF_REG_TRAITS(prefix, _reg, lane_type, suffix, _u_reg, _w_reg, _q_reg, _int_reg, _round_reg) \
  234. template<> struct V_RegTraits<_reg> \
  235. { \
  236. typedef _reg reg; \
  237. typedef _u_reg u_reg; \
  238. typedef _w_reg w_reg; \
  239. typedef _q_reg q_reg; \
  240. typedef _int_reg int_reg; \
  241. typedef _round_reg round_reg; \
  242. }
  243. #if CV_SIMD128 || CV_SIMD128_CPP
  244. CV_DEF_REG_TRAITS(v, v_uint8x16, uchar, u8, v_uint8x16, v_uint16x8, v_uint32x4, v_int8x16, void);
  245. CV_DEF_REG_TRAITS(v, v_int8x16, schar, s8, v_uint8x16, v_int16x8, v_int32x4, v_int8x16, void);
  246. CV_DEF_REG_TRAITS(v, v_uint16x8, ushort, u16, v_uint16x8, v_uint32x4, v_uint64x2, v_int16x8, void);
  247. CV_DEF_REG_TRAITS(v, v_int16x8, short, s16, v_uint16x8, v_int32x4, v_int64x2, v_int16x8, void);
  248. CV_DEF_REG_TRAITS(v, v_uint32x4, unsigned, u32, v_uint32x4, v_uint64x2, void, v_int32x4, void);
  249. CV_DEF_REG_TRAITS(v, v_int32x4, int, s32, v_uint32x4, v_int64x2, void, v_int32x4, void);
  250. #if CV_SIMD128_64F
  251. CV_DEF_REG_TRAITS(v, v_float32x4, float, f32, v_float32x4, v_float64x2, void, v_int32x4, v_int32x4);
  252. #else
  253. CV_DEF_REG_TRAITS(v, v_float32x4, float, f32, v_float32x4, void, void, v_int32x4, v_int32x4);
  254. #endif
  255. CV_DEF_REG_TRAITS(v, v_uint64x2, uint64, u64, v_uint64x2, void, void, v_int64x2, void);
  256. CV_DEF_REG_TRAITS(v, v_int64x2, int64, s64, v_uint64x2, void, void, v_int64x2, void);
  257. #if CV_SIMD128_64F
  258. CV_DEF_REG_TRAITS(v, v_float64x2, double, f64, v_float64x2, void, void, v_int64x2, v_int32x4);
  259. #endif
  260. #endif
  261. #if CV_SIMD256
  262. CV_DEF_REG_TRAITS(v256, v_uint8x32, uchar, u8, v_uint8x32, v_uint16x16, v_uint32x8, v_int8x32, void);
  263. CV_DEF_REG_TRAITS(v256, v_int8x32, schar, s8, v_uint8x32, v_int16x16, v_int32x8, v_int8x32, void);
  264. CV_DEF_REG_TRAITS(v256, v_uint16x16, ushort, u16, v_uint16x16, v_uint32x8, v_uint64x4, v_int16x16, void);
  265. CV_DEF_REG_TRAITS(v256, v_int16x16, short, s16, v_uint16x16, v_int32x8, v_int64x4, v_int16x16, void);
  266. CV_DEF_REG_TRAITS(v256, v_uint32x8, unsigned, u32, v_uint32x8, v_uint64x4, void, v_int32x8, void);
  267. CV_DEF_REG_TRAITS(v256, v_int32x8, int, s32, v_uint32x8, v_int64x4, void, v_int32x8, void);
  268. CV_DEF_REG_TRAITS(v256, v_float32x8, float, f32, v_float32x8, v_float64x4, void, v_int32x8, v_int32x8);
  269. CV_DEF_REG_TRAITS(v256, v_uint64x4, uint64, u64, v_uint64x4, void, void, v_int64x4, void);
  270. CV_DEF_REG_TRAITS(v256, v_int64x4, int64, s64, v_uint64x4, void, void, v_int64x4, void);
  271. CV_DEF_REG_TRAITS(v256, v_float64x4, double, f64, v_float64x4, void, void, v_int64x4, v_int32x8);
  272. #endif
  273. #if CV_SIMD512 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 512)
  274. #define CV__SIMD_NAMESPACE simd512
  275. namespace CV__SIMD_NAMESPACE {
  276. #define CV_SIMD 1
  277. #define CV_SIMD_64F CV_SIMD512_64F
  278. #define CV_SIMD_WIDTH 64
  279. // TODO typedef v_uint8 / v_int32 / etc types here
  280. } // namespace
  281. using namespace CV__SIMD_NAMESPACE;
  282. #elif CV_SIMD256 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 256)
  283. #define CV__SIMD_NAMESPACE simd256
  284. namespace CV__SIMD_NAMESPACE {
  285. #define CV_SIMD 1
  286. #define CV_SIMD_64F CV_SIMD256_64F
  287. #define CV_SIMD_FP16 CV_SIMD256_FP16
  288. #define CV_SIMD_WIDTH 32
  289. typedef v_uint8x32 v_uint8;
  290. typedef v_int8x32 v_int8;
  291. typedef v_uint16x16 v_uint16;
  292. typedef v_int16x16 v_int16;
  293. typedef v_uint32x8 v_uint32;
  294. typedef v_int32x8 v_int32;
  295. typedef v_uint64x4 v_uint64;
  296. typedef v_int64x4 v_int64;
  297. typedef v_float32x8 v_float32;
  298. CV_INTRIN_DEFINE_WIDE_INTRIN_ALL_TYPES(v256)
  299. #if CV_SIMD256_64F
  300. typedef v_float64x4 v_float64;
  301. CV_INTRIN_DEFINE_WIDE_INTRIN(double, v_float64, f64, v256, load)
  302. #endif
  303. inline void vx_cleanup() { v256_cleanup(); }
  304. } // namespace
  305. using namespace CV__SIMD_NAMESPACE;
  306. #elif (CV_SIMD128 || CV_SIMD128_CPP) && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 128)
  307. #define CV__SIMD_NAMESPACE simd128
  308. namespace CV__SIMD_NAMESPACE {
  309. #define CV_SIMD CV_SIMD128
  310. #define CV_SIMD_64F CV_SIMD128_64F
  311. #define CV_SIMD_WIDTH 16
  312. typedef v_uint8x16 v_uint8;
  313. typedef v_int8x16 v_int8;
  314. typedef v_uint16x8 v_uint16;
  315. typedef v_int16x8 v_int16;
  316. typedef v_uint32x4 v_uint32;
  317. typedef v_int32x4 v_int32;
  318. typedef v_uint64x2 v_uint64;
  319. typedef v_int64x2 v_int64;
  320. typedef v_float32x4 v_float32;
  321. CV_INTRIN_DEFINE_WIDE_INTRIN_ALL_TYPES(v)
  322. #if CV_SIMD128_64F
  323. typedef v_float64x2 v_float64;
  324. CV_INTRIN_DEFINE_WIDE_INTRIN(double, v_float64, f64, v, load)
  325. #endif
  326. inline void vx_cleanup() { v_cleanup(); }
  327. } // namespace
  328. using namespace CV__SIMD_NAMESPACE;
  329. #endif
  330. inline unsigned int trailingZeros32(unsigned int value) {
  331. #if defined(_MSC_VER)
  332. #if (_MSC_VER < 1700) || defined(_M_ARM)
  333. unsigned long index = 0;
  334. _BitScanForward(&index, value);
  335. return (unsigned int)index;
  336. #elif defined(__clang__)
  337. // clang-cl doesn't export _tzcnt_u32 for non BMI systems
  338. return value ? __builtin_ctz(value) : 32;
  339. #else
  340. return _tzcnt_u32(value);
  341. #endif
  342. #elif defined(__GNUC__) || defined(__GNUG__)
  343. return __builtin_ctz(value);
  344. #elif defined(__ICC) || defined(__INTEL_COMPILER)
  345. return _bit_scan_forward(value);
  346. #elif defined(__clang__)
  347. return llvm.cttz.i32(value, true);
  348. #else
  349. static const int MultiplyDeBruijnBitPosition[32] = {
  350. 0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8,
  351. 31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9 };
  352. return MultiplyDeBruijnBitPosition[((uint32_t)((value & -value) * 0x077CB531U)) >> 27];
  353. #endif
  354. }
  355. #ifndef CV_DOXYGEN
  356. CV_CPU_OPTIMIZATION_HAL_NAMESPACE_END
  357. #endif
  358. #ifndef CV_SIMD_64F
  359. #define CV_SIMD_64F 0
  360. #endif
  361. #ifndef CV_SIMD_FP16
  362. #define CV_SIMD_FP16 0 //!< Defined to 1 on native support of operations with float16x8_t / float16x16_t (SIMD256) types
  363. #endif
  364. #ifndef CV_SIMD
  365. #define CV_SIMD 0
  366. #endif
  367. } // cv::
  368. //! @endcond
  369. #endif