owndefs.h 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. /*############################################################################
  2. # Copyright 2016 Intel Corporation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################*/
  16. /*
  17. // Author(s): Alexey Korchuganov
  18. // Anatoly Pluzhnikov
  19. // Igor Astakhov
  20. // Dmitry Kozhaev
  21. //
  22. // Created: 27-Jul-1999 20:27
  23. //
  24. */
  25. #ifndef __OWNDEFS_H__
  26. #define __OWNDEFS_H__
  27. #if defined( _VXWORKS )
  28. #include <vxWorks.h>
  29. #undef NONE
  30. #endif
  31. #include "ippdefs.h"
  32. #if defined(__INTEL_COMPILER) || defined(_MSC_VER)
  33. #define __INLINE static __inline
  34. #elif defined( __GNUC__ )
  35. #define __INLINE static __inline__
  36. #else
  37. #define __INLINE static
  38. #endif
  39. #if defined(__INTEL_COMPILER)
  40. #define __RESTRICT restrict
  41. #elif !defined( __RESTRICT )
  42. #define __RESTRICT
  43. #endif
  44. #if defined( IPP_W32DLL )
  45. #if defined( _MSC_VER ) || defined( __INTEL_COMPILER )
  46. #define IPPFUN(type,name,arg) __declspec(dllexport) type __STDCALL name arg
  47. #else
  48. #define IPPFUN(type,name,arg) extern type __STDCALL name arg
  49. #endif
  50. #else
  51. #define IPPFUN(type,name,arg) extern type __STDCALL name arg
  52. #endif
  53. /* structure represeting 128 bit unsigned integer type */
  54. typedef struct{
  55. Ipp64u low;
  56. Ipp64u high;
  57. }Ipp128u;
  58. #define _IPP_PX 0 /* pure C-code ia32 */
  59. #define _IPP_M5 1 /* Quark (Pentium) - x86+x87 ia32 */
  60. #define _IPP_M6 2 /* Pentium MMX - MMX ia32 */
  61. #define _IPP_A6 4 /* Pentium III - SSE ia32 */
  62. #define _IPP_W7 8 /* Pentium 4 - SSE2 ia32 */
  63. #define _IPP_T7 16 /* Pentium with x64 support (Nocona) - SSE3 ia32 */
  64. #define _IPP_V8 32 /* Merom - SSSE3 ia32 */
  65. #define _IPP_P8 64 /* Penryn - SSE4.1 + tick for SSE4.2 ia32 */
  66. #define _IPP_G9 128 /* SandyBridge (GSSE) - AVX ia32 */
  67. #define _IPP_H9 256 /* Haswell (AVX2) ia32 */
  68. #define _IPP_I0 512 /* KNL (AVX-512) ia32 */
  69. #define _IPP_S0 1024 /* SkyLake Xeon (AVX-512) ia32 */
  70. #define _IPPXSC_PX 0
  71. #define _IPPXSC_S1 1
  72. #define _IPPXSC_S2 2
  73. #define _IPPXSC_C2 4
  74. #define _IPPLRB_PX 0
  75. #define _IPPLRB_B1 1
  76. #define _IPPLRB_B2 2
  77. #define _IPP64_PX _IPP_PX
  78. #define _IPP64_I7 64
  79. #define _IPP32E_PX _IPP_PX /* pure C-code x64 */
  80. #define _IPP32E_M7 32 /* Pentium with x64 support (Nocona) - SSE3 x64 */
  81. #define _IPP32E_U8 64 /* Merom - SSSE3 x64 */
  82. #define _IPP32E_Y8 128 /* Penryn - SSE4.1 + tick for SSE4.2 x64 */
  83. #define _IPP32E_E9 256 /* SandyBridge (GSSE) - AVX x64 */
  84. #define _IPP32E_L9 512 /* Haswell (AVX2) x64 */
  85. #define _IPP32E_N0 1024 /* KNL (AVX-512) x64 */
  86. #define _IPP32E_K0 2048 /* SkyLake Xeon (AVX-512) x64 */
  87. #define _IPPLP32_PX _IPP_PX
  88. #define _IPPLP32_S8 1 /* old Atom (SSSE3+movbe) (Silverthorne) ia32 */
  89. #define _IPPLP64_PX _IPP_PX
  90. #define _IPPLP64_N8 1 /* old Atom (SSSE3+movbe) (Silverthorne) x64 */
  91. #if defined(__INTEL_COMPILER) || (_MSC_VER >= 1300)
  92. #define __ALIGN8 __declspec (align(8))
  93. #define __ALIGN16 __declspec (align(16))
  94. #if !defined( OSX32 )
  95. #define __ALIGN32 __declspec (align(32))
  96. #else
  97. #define __ALIGN32 __declspec (align(16))
  98. #endif
  99. #define __ALIGN64 __declspec (align(64))
  100. #else
  101. #define __ALIGN8
  102. #define __ALIGN16
  103. #define __ALIGN32
  104. #define __ALIGN64
  105. #endif
  106. #if defined ( _M5 ) /* Quark (Pentium) - x86+x87 ia32 */
  107. #define _IPP _IPP_M5
  108. #define _IPP32E _IPP32E_PX
  109. #define _IPPLRB _IPPLRB_PX
  110. #define _IPPLP32 _IPPLP32_PX
  111. #define _IPPLP64 _IPPLP64_PX
  112. #elif defined ( _M6 ) /* Pentium MMX - MMX ia32 */
  113. #define _IPP _IPP_M6
  114. #define _IPP32E _IPP32E_PX
  115. #define _IPPLRB _IPPLRB_PX
  116. #define _IPPLP32 _IPPLP32_PX
  117. #define _IPPLP64 _IPPLP64_PX
  118. #elif defined( _A6 ) /* Pentium III - SSE ia32 */
  119. #define _IPP _IPP_A6
  120. #define _IPP32E _IPP32E_PX
  121. #define _IPPLRB _IPPLRB_PX
  122. #define _IPPLP32 _IPPLP32_PX
  123. #define _IPPLP64 _IPPLP64_PX
  124. #elif defined( _W7 ) /* Pentium 4 - SSE2 ia32 */
  125. #define _IPP _IPP_W7
  126. #define _IPP32E _IPP32E_PX
  127. #define _IPPLRB _IPPLRB_PX
  128. #define _IPPLP32 _IPPLP32_PX
  129. #define _IPPLP64 _IPPLP64_PX
  130. #elif defined( _T7 ) /* Pentium with x64 support (Nocona) - SSE3 ia32 */
  131. #define _IPP _IPP_T7
  132. #define _IPP32E _IPP32E_PX
  133. #define _IPPLRB _IPPLRB_PX
  134. #define _IPPLP32 _IPPLP32_PX
  135. #define _IPPLP64 _IPPLP64_PX
  136. #elif defined( _V8 ) /* Merom - SSSE3 ia32 */
  137. #define _IPP _IPP_V8
  138. #define _IPP32E _IPP32E_PX
  139. #define _IPPLRB _IPPLRB_PX
  140. #define _IPPLP32 _IPPLP32_PX
  141. #define _IPPLP64 _IPPLP64_PX
  142. #elif defined( _P8 ) /* Penryn - SSE4.1 + tick for SSE4.2 ia32 */
  143. #define _IPP _IPP_P8
  144. #define _IPP32E _IPP32E_PX
  145. #define _IPPLRB _IPPLRB_PX
  146. #define _IPPLP32 _IPPLP32_PX
  147. #define _IPPLP64 _IPPLP64_PX
  148. #elif defined( _G9 ) /* SandyBridge (GSSE) - AVX ia32 */
  149. #define _IPP _IPP_G9
  150. #define _IPP32E _IPP32E_PX
  151. #define _IPPLRB _IPPLRB_PX
  152. #define _IPPLP32 _IPPLP32_PX
  153. #define _IPPLP64 _IPPLP64_PX
  154. #elif defined( _H9 ) /* Haswell (AVX2) ia32 */
  155. #define _IPP _IPP_H9
  156. #define _IPP32E _IPP32E_PX
  157. #define _IPPLRB _IPPLRB_PX
  158. #define _IPPLP32 _IPPLP32_PX
  159. #define _IPPLP64 _IPPLP64_PX
  160. #elif defined( _M7 ) /* Pentium with x64 support (Nocona) - SSE3 x64 */
  161. #define _IPP _IPP_PX
  162. #define _IPP32E _IPP32E_M7
  163. #define _IPPLRB _IPPLRB_PX
  164. #define _IPPLP32 _IPPLP32_PX
  165. #define _IPPLP64 _IPPLP64_PX
  166. #elif defined( _U8 ) /* Merom - SSSE3 x64 */
  167. #define _IPP _IPP_PX
  168. #define _IPP32E _IPP32E_U8
  169. #define _IPPLRB _IPPLRB_PX
  170. #define _IPPLP32 _IPPLP32_PX
  171. #define _IPPLP64 _IPPLP64_PX
  172. #elif defined( _Y8 ) /* Penryn - SSE4.1 + tick for SSE4.2 x64 */
  173. #define _IPP _IPP_PX
  174. #define _IPP32E _IPP32E_Y8
  175. #define _IPPLRB _IPPLRB_PX
  176. #define _IPPLP32 _IPPLP32_PX
  177. #define _IPPLP64 _IPPLP64_PX
  178. #elif defined( _E9 ) /* SandyBridge (GSSE) - AVX x64 */
  179. #define _IPP _IPP_PX
  180. #define _IPP32E _IPP32E_E9
  181. #define _IPPLRB _IPPLRB_PX
  182. #define _IPPLP32 _IPPLP32_PX
  183. #define _IPPLP64 _IPPLP64_PX
  184. #elif defined( _L9 ) /* Haswell (AVX2) x64 */
  185. #define _IPP _IPP_PX
  186. #define _IPP32E _IPP32E_L9
  187. #define _IPPLRB _IPPLRB_PX
  188. #define _IPPLP32 _IPPLP32_PX
  189. #define _IPPLP64 _IPPLP64_PX
  190. #elif defined( _N0 ) /* KNL (AVX-512) x64 */
  191. #define _IPP _IPP_PX
  192. #define _IPP32E _IPP32E_N0
  193. #define _IPPLRB _IPPLRB_PX
  194. #define _IPPLP32 _IPPLP32_PX
  195. #define _IPPLP64 _IPPLP64_PX
  196. #elif defined( _K0 ) /* SkyLake Xeon (AVX-512) x64 */
  197. #define _IPP _IPP_PX
  198. #define _IPP32E _IPP32E_K0
  199. #define _IPPLRB _IPPLRB_PX
  200. #define _IPPLP32 _IPPLP32_PX
  201. #define _IPPLP64 _IPPLP64_PX
  202. #elif defined( _B2 ) /* KNC (MIC) */
  203. #define _IPP _IPP_PX
  204. #define _IPP32E _IPP32E_PX
  205. #define _IPPLRB _IPPLRB_B2
  206. #define _IPPLP32 _IPPLP32_PX
  207. #define _IPPLP64 _IPPLP64_PX
  208. #elif defined( _S8 ) /* old Atom (SSSE3+movbe) (Silverthorne) ia32 */
  209. #define _IPP _IPP_V8
  210. #define _IPP32E _IPP32E_PX
  211. #define _IPPLRB _IPPLRB_PX
  212. #define _IPPLP32 _IPPLP32_S8
  213. #define _IPPLP64 _IPPLP64_PX
  214. #elif defined( _N8 ) /* old Atom (SSSE3+movbe) (Silverthorne) x64 */
  215. #define _IPP _IPP_PX
  216. #define _IPP32E _IPP32E_U8
  217. #define _IPPLRB _IPPLRB_PX
  218. #define _IPPLP32 _IPPLP32_PX
  219. #define _IPPLP64 _IPPLP64_N8
  220. #else
  221. #define _IPP _IPP_PX
  222. #define _IPP32E _IPP32E_PX
  223. #define _IPPLRB _IPPLRB_PX
  224. #define _IPPLP32 _IPPLP32_PX
  225. #define _IPPLP64 _IPPLP64_PX
  226. #endif
  227. #define _IPP_ARCH_IA32 1
  228. #define _IPP_ARCH_IA64 2
  229. #define _IPP_ARCH_EM64T 4
  230. #define _IPP_ARCH_XSC 8
  231. #define _IPP_ARCH_LRB 16
  232. #define _IPP_ARCH_LP32 32
  233. #define _IPP_ARCH_LP64 64
  234. #define _IPP_ARCH_LRB2 128
  235. #if defined ( _ARCH_IA32 )
  236. #define _IPP_ARCH _IPP_ARCH_IA32
  237. #elif defined( _ARCH_EM64T )
  238. #define _IPP_ARCH _IPP_ARCH_EM64T
  239. #elif defined( _ARCH_LRB2 )
  240. #define _IPP_ARCH _IPP_ARCH_LRB2
  241. #elif defined( _ARCH_LP32 )
  242. #define _IPP_ARCH _IPP_ARCH_LP32
  243. #elif defined( _ARCH_LP64 )
  244. #define _IPP_ARCH _IPP_ARCH_LP64
  245. #else
  246. #if defined(_M_AMD64) || defined(__x86_64) || defined(__x86_64__)
  247. #define _IPP_ARCH _IPP_ARCH_EM64T
  248. #else
  249. #define _IPP_ARCH _IPP_ARCH_IA32
  250. #endif
  251. #endif
  252. #if ((_IPP_ARCH == _IPP_ARCH_IA32) || (_IPP_ARCH == _IPP_ARCH_LP32))
  253. __INLINE
  254. Ipp32s IPP_INT_PTR( const void* ptr ) {
  255. union {
  256. void* Ptr;
  257. Ipp32s Int;
  258. } dd;
  259. dd.Ptr = (void*)ptr;
  260. return dd.Int;
  261. }
  262. __INLINE
  263. Ipp32u IPP_UINT_PTR( const void* ptr ) {
  264. union {
  265. void* Ptr;
  266. Ipp32u Int;
  267. } dd;
  268. dd.Ptr = (void*)ptr;
  269. return dd.Int;
  270. }
  271. #elif ((_IPP_ARCH == _IPP_ARCH_EM64T) || (_IPP_ARCH == _IPP_ARCH_LRB2) || (_IPP_ARCH == _IPP_ARCH_LP64))
  272. __INLINE
  273. Ipp64s IPP_INT_PTR( const void* ptr ) {
  274. union {
  275. void* Ptr;
  276. Ipp64s Int;
  277. } dd;
  278. dd.Ptr = (void*)ptr;
  279. return dd.Int;
  280. }
  281. __INLINE
  282. Ipp64u IPP_UINT_PTR( const void* ptr ) {
  283. union {
  284. void* Ptr;
  285. Ipp64u Int;
  286. } dd;
  287. dd.Ptr = (void*)ptr;
  288. return dd.Int;
  289. }
  290. #else
  291. #define IPP_INT_PTR( ptr ) ( (long)(ptr) )
  292. #define IPP_UINT_PTR( ptr ) ( (unsigned long)(ptr) )
  293. #endif
  294. #define IPP_ALIGN_TYPE(type, align) ((align)/sizeof(type)-1)
  295. #define IPP_BYTES_TO_ALIGN(ptr, align) ((-(IPP_INT_PTR(ptr)&((align)-1)))&((align)-1))
  296. #define IPP_ALIGNED_PTR(ptr, align) (void*)( (unsigned char*)(ptr) + (IPP_BYTES_TO_ALIGN( ptr, align )) )
  297. #define IPP_ALIGNED_SIZE(size, align) (((size)+(align)-1)&~((align)-1))
  298. #define IPP_MALLOC_ALIGNED_BYTES 64
  299. #define IPP_MALLOC_ALIGNED_8BYTES 8
  300. #define IPP_MALLOC_ALIGNED_16BYTES 16
  301. #define IPP_MALLOC_ALIGNED_32BYTES 32
  302. #define IPP_ALIGNED_ARRAY(align,arrtype,arrname,arrlength)\
  303. char arrname##AlignedArrBuff[sizeof(arrtype)*(arrlength)+IPP_ALIGN_TYPE(char, align)];\
  304. arrtype *arrname = (arrtype*)IPP_ALIGNED_PTR(arrname##AlignedArrBuff,align)
  305. #if defined( __cplusplus )
  306. extern "C" {
  307. #endif
  308. /* /////////////////////////////////////////////////////////////////////////////
  309. IPP Context Identification
  310. /////////////////////////////////////////////////////////////////////////// */
  311. #define IPP_CONTEXT( a, b, c, d) \
  312. (int)(((unsigned)(a) << 24) | ((unsigned)(b) << 16) | \
  313. ((unsigned)(c) << 8) | (unsigned)(d))
  314. typedef enum {
  315. idCtxUnknown = 0,
  316. idCtxFFT_C_16sc,
  317. idCtxFFT_C_16s,
  318. idCtxFFT_R_16s,
  319. idCtxFFT_C_32fc,
  320. idCtxFFT_C_32f,
  321. idCtxFFT_R_32f,
  322. idCtxFFT_C_64fc,
  323. idCtxFFT_C_64f,
  324. idCtxFFT_R_64f,
  325. idCtxDFT_C_16sc,
  326. idCtxDFT_C_16s,
  327. idCtxDFT_R_16s,
  328. idCtxDFT_C_32fc,
  329. idCtxDFT_C_32f,
  330. idCtxDFT_R_32f,
  331. idCtxDFT_C_64fc,
  332. idCtxDFT_C_64f,
  333. idCtxDFT_R_64f,
  334. idCtxDCTFwd_16s,
  335. idCtxDCTInv_16s,
  336. idCtxDCTFwd_32f,
  337. idCtxDCTInv_32f,
  338. idCtxDCTFwd_64f,
  339. idCtxDCTInv_64f,
  340. idCtxFFT2D_C_32fc,
  341. idCtxFFT2D_R_32f,
  342. idCtxDFT2D_C_32fc,
  343. idCtxDFT2D_R_32f,
  344. idCtxFFT2D_R_32s,
  345. idCtxDFT2D_R_32s,
  346. idCtxDCT2DFwd_32f,
  347. idCtxDCT2DInv_32f,
  348. idCtxMoment64f,
  349. idCtxMoment64s,
  350. idCtxRandUni_8u,
  351. idCtxRandUni_16s,
  352. idCtxRandUni_32f,
  353. idCtxRandUni_64f,
  354. idCtxRandGauss_8u,
  355. idCtxRandGauss_16s,
  356. idCtxRandGauss_32f,
  357. idCtxRandGauss_64f,
  358. idCtxWTFwd_32f,
  359. idCtxWTFwd_8u32f,
  360. idCtxWTFwd_8s32f,
  361. idCtxWTFwd_16u32f,
  362. idCtxWTFwd_16s32f,
  363. idCtxWTFwd2D_32f_C1R,
  364. idCtxWTInv2D_32f_C1R,
  365. idCtxWTFwd2D_32f_C3R,
  366. idCtxWTInv2D_32f_C3R,
  367. idCtxWTInv_32f,
  368. idCtxWTInv_32f8u,
  369. idCtxWTInv_32f8s,
  370. idCtxWTInv_32f16u,
  371. idCtxWTInv_32f16s,
  372. idCtxMDCTFwd_32f,
  373. idCtxMDCTInv_32f,
  374. idCtxMDCTFwd_16s,
  375. idCtxFIRBlock_32f,
  376. idCtxFDP_32f,
  377. idCtxRLMS_32f = IPP_CONTEXT( 'L', 'M', 'S', '1'),
  378. idCtxRLMS32f_16s = IPP_CONTEXT( 'L', 'M', 'S', 0 ),
  379. idCtxIIRAR_32f = IPP_CONTEXT( 'I', 'I', '0', '1'),
  380. idCtxIIRBQ_32f = IPP_CONTEXT( 'I', 'I', '0', '2'),
  381. idCtxIIRAR_32fc = IPP_CONTEXT( 'I', 'I', '0', '3'),
  382. idCtxIIRBQ_32fc = IPP_CONTEXT( 'I', 'I', '0', '4'),
  383. idCtxIIRAR32f_16s = IPP_CONTEXT( 'I', 'I', '0', '5'),
  384. idCtxIIRBQ32f_16s = IPP_CONTEXT( 'I', 'I', '0', '6'),
  385. idCtxIIRAR32fc_16sc = IPP_CONTEXT( 'I', 'I', '0', '7'),
  386. idCtxIIRBQ32fc_16sc = IPP_CONTEXT( 'I', 'I', '0', '8'),
  387. idCtxIIRAR32s_16s = IPP_CONTEXT( 'I', 'I', '0', '9'),
  388. idCtxIIRBQ32s_16s = IPP_CONTEXT( 'I', 'I', '1', '0'),
  389. idCtxIIRAR32sc_16sc = IPP_CONTEXT( 'I', 'I', '1', '1'),
  390. idCtxIIRBQ32sc_16sc = IPP_CONTEXT( 'I', 'I', '1', '2'),
  391. idCtxIIRAR_64f = IPP_CONTEXT( 'I', 'I', '1', '3'),
  392. idCtxIIRBQ_64f = IPP_CONTEXT( 'I', 'I', '1', '4'),
  393. idCtxIIRAR_64fc = IPP_CONTEXT( 'I', 'I', '1', '5'),
  394. idCtxIIRBQ_64fc = IPP_CONTEXT( 'I', 'I', '1', '6'),
  395. idCtxIIRAR64f_32f = IPP_CONTEXT( 'I', 'I', '1', '7'),
  396. idCtxIIRBQ64f_32f = IPP_CONTEXT( 'I', 'I', '1', '8'),
  397. idCtxIIRAR64fc_32fc = IPP_CONTEXT( 'I', 'I', '1', '9'),
  398. idCtxIIRBQ64fc_32fc = IPP_CONTEXT( 'I', 'I', '2', '0'),
  399. idCtxIIRAR64f_32s = IPP_CONTEXT( 'I', 'I', '2', '1'),
  400. idCtxIIRBQ64f_32s = IPP_CONTEXT( 'I', 'I', '2', '2'),
  401. idCtxIIRAR64fc_32sc = IPP_CONTEXT( 'I', 'I', '2', '3'),
  402. idCtxIIRBQ64fc_32sc = IPP_CONTEXT( 'I', 'I', '2', '4'),
  403. idCtxIIRAR64f_16s = IPP_CONTEXT( 'I', 'I', '2', '5'),
  404. idCtxIIRBQ64f_16s = IPP_CONTEXT( 'I', 'I', '2', '6'),
  405. idCtxIIRAR64fc_16sc = IPP_CONTEXT( 'I', 'I', '2', '7'),
  406. idCtxIIRBQ64fc_16sc = IPP_CONTEXT( 'I', 'I', '2', '8'),
  407. idCtxIIRBQDF1_32f = IPP_CONTEXT( 'I', 'I', '2', '9'),
  408. idCtxIIRBQDF164f_32s= IPP_CONTEXT( 'I', 'I', '3', '0'),
  409. idCtxFIRSR_32f = IPP_CONTEXT( 'F', 'I', '0', '1'),
  410. idCtxFIRSR_32fc = IPP_CONTEXT( 'F', 'I', '0', '2'),
  411. idCtxFIRMR_32f = IPP_CONTEXT( 'F', 'I', '0', '3'),
  412. idCtxFIRMR_32fc = IPP_CONTEXT( 'F', 'I', '0', '4'),
  413. idCtxFIRSR32f_16s = IPP_CONTEXT( 'F', 'I', '0', '5'),
  414. idCtxFIRSR32fc_16sc = IPP_CONTEXT( 'F', 'I', '0', '6'),
  415. idCtxFIRMR32f_16s = IPP_CONTEXT( 'F', 'I', '0', '7'),
  416. idCtxFIRMR32fc_16sc = IPP_CONTEXT( 'F', 'I', '0', '8'),
  417. idCtxFIRSR32s_16s = IPP_CONTEXT( 'F', 'I', '0', '9'),
  418. idCtxFIRSR32sc_16sc = IPP_CONTEXT( 'F', 'I', '1', '0'),
  419. idCtxFIRMR32s_16s = IPP_CONTEXT( 'F', 'I', '1', '1'),
  420. idCtxFIRMR32sc_16sc = IPP_CONTEXT( 'F', 'I', '1', '2'),
  421. idCtxFIRSR_64f = IPP_CONTEXT( 'F', 'I', '1', '3'),
  422. idCtxFIRSR_64fc = IPP_CONTEXT( 'F', 'I', '1', '4'),
  423. idCtxFIRMR_64f = IPP_CONTEXT( 'F', 'I', '1', '5'),
  424. idCtxFIRMR_64fc = IPP_CONTEXT( 'F', 'I', '1', '6'),
  425. idCtxFIRSR64f_32f = IPP_CONTEXT( 'F', 'I', '1', '7'),
  426. idCtxFIRSR64fc_32fc = IPP_CONTEXT( 'F', 'I', '1', '8'),
  427. idCtxFIRMR64f_32f = IPP_CONTEXT( 'F', 'I', '1', '9'),
  428. idCtxFIRMR64fc_32fc = IPP_CONTEXT( 'F', 'I', '2', '0'),
  429. idCtxFIRSR64f_32s = IPP_CONTEXT( 'F', 'I', '2', '1'),
  430. idCtxFIRSR64fc_32sc = IPP_CONTEXT( 'F', 'I', '2', '2'),
  431. idCtxFIRMR64f_32s = IPP_CONTEXT( 'F', 'I', '2', '3'),
  432. idCtxFIRMR64fc_32sc = IPP_CONTEXT( 'F', 'I', '2', '4'),
  433. idCtxFIRSR64f_16s = IPP_CONTEXT( 'F', 'I', '2', '5'),
  434. idCtxFIRSR64fc_16sc = IPP_CONTEXT( 'F', 'I', '2', '6'),
  435. idCtxFIRMR64f_16s = IPP_CONTEXT( 'F', 'I', '2', '7'),
  436. idCtxFIRMR64fc_16sc = IPP_CONTEXT( 'F', 'I', '2', '8'),
  437. idCtxFIRSR_16s = IPP_CONTEXT( 'F', 'I', '2', '9'),
  438. idCtxFIRMR_16s = IPP_CONTEXT( 'F', 'I', '3', '0'),
  439. idCtxFIRSRStream_16s= IPP_CONTEXT( 'F', 'I', '3', '1'),
  440. idCtxFIRMRStream_16s= IPP_CONTEXT( 'F', 'I', '3', '2'),
  441. idCtxFIRSRStream_32f= IPP_CONTEXT( 'F', 'I', '3', '3'),
  442. idCtxFIRMRStream_32f= IPP_CONTEXT( 'F', 'I', '3', '4'),
  443. idCtxRLMS32s_16s = IPP_CONTEXT( 'L', 'M', 'S', 'R'),
  444. idCtxCLMS32s_16s = IPP_CONTEXT( 'L', 'M', 'S', 'C'),
  445. idCtxEncode_JPEG2K,
  446. idCtxDES = IPP_CONTEXT( ' ', 'D', 'E', 'S'),
  447. idCtxBlowfish = IPP_CONTEXT( ' ', ' ', 'B', 'F'),
  448. idCtxRijndael = IPP_CONTEXT( ' ', 'R', 'I', 'J'),
  449. idCtxSMS4 = IPP_CONTEXT( 'S', 'M', 'S', '4'),
  450. idCtxTwofish = IPP_CONTEXT( ' ', ' ', 'T', 'F'),
  451. idCtxARCFOUR = IPP_CONTEXT( ' ', 'R', 'C', '4'),
  452. idCtxRC564 = IPP_CONTEXT( 'R', 'C', '5', '1'),
  453. idCtxRC5128 = IPP_CONTEXT( 'R', 'C', '5', '2'),
  454. idCtxSHA1 = IPP_CONTEXT( 'S', 'H', 'S', '1'),
  455. idCtxSHA224 = IPP_CONTEXT( 'S', 'H', 'S', '3'),
  456. idCtxSHA256 = IPP_CONTEXT( 'S', 'H', 'S', '2'),
  457. idCtxSHA384 = IPP_CONTEXT( 'S', 'H', 'S', '4'),
  458. idCtxSHA512 = IPP_CONTEXT( 'S', 'H', 'S', '5'),
  459. idCtxMD5 = IPP_CONTEXT( ' ', 'M', 'D', '5'),
  460. idCtxHMAC = IPP_CONTEXT( 'H', 'M', 'A', 'C'),
  461. idCtxDAA = IPP_CONTEXT( ' ', 'D', 'A', 'A'),
  462. idCtxBigNum = IPP_CONTEXT( 'B', 'I', 'G', 'N'),
  463. idCtxMontgomery = IPP_CONTEXT( 'M', 'O', 'N', 'T'),
  464. idCtxPrimeNumber = IPP_CONTEXT( 'P', 'R', 'I', 'M'),
  465. idCtxPRNG = IPP_CONTEXT( 'P', 'R', 'N', 'G'),
  466. idCtxRSA = IPP_CONTEXT( ' ', 'R', 'S', 'A'),
  467. idCtxRSA_PubKey = IPP_CONTEXT( 'R', 'S', 'A', '0'),
  468. idCtxRSA_PrvKey1 = IPP_CONTEXT( 'R', 'S', 'A', '1'),
  469. idCtxRSA_PrvKey2 = IPP_CONTEXT( 'R', 'S', 'A', '2'),
  470. idCtxDSA = IPP_CONTEXT( ' ', 'D', 'S', 'A'),
  471. idCtxECCP = IPP_CONTEXT( ' ', 'E', 'C', 'P'),
  472. idCtxECCB = IPP_CONTEXT( ' ', 'E', 'C', 'B'),
  473. idCtxECCPPoint = IPP_CONTEXT( 'P', 'E', 'C', 'P'),
  474. idCtxECCBPoint = IPP_CONTEXT( 'P', 'E', 'C', 'B'),
  475. idCtxDH = IPP_CONTEXT( ' ', ' ', 'D', 'H'),
  476. idCtxDLP = IPP_CONTEXT( ' ', 'D', 'L', 'P'),
  477. idCtxCMAC = IPP_CONTEXT( 'C', 'M', 'A', 'C'),
  478. idCtxRFFT2_8u,
  479. idCtxHilbert_32f32fc,
  480. idCtxHilbert_16s32fc,
  481. idCtxHilbert_16s16sc,
  482. idCtxTone_16s,
  483. idCtxTriangle_16s,
  484. idCtxDFTOutOrd_C_32fc,
  485. idCtxDFTOutOrd_C_64fc,
  486. idCtxFFT_C_32sc,
  487. idCtxFFT_C_32s,
  488. idCtxFFT_R_32s,
  489. idCtxFFT_R_16s32s,
  490. idCtxDecodeProgr_JPEG2K,
  491. idCtxWarp_MPEG4,
  492. idCtxQuantInvIntra_MPEG4,
  493. idCtxQuantInvInter_MPEG4,
  494. idCtxQuantIntra_MPEG4,
  495. idCtxQuantInter_MPEG4,
  496. idCtxAnalysisFilter_SBR_C_32f32fc,
  497. idCtxAnalysisFilter_SBR_C_32f,
  498. idCtxAnalysisFilter_SBR_R_32f,
  499. idCtxSynthesisFilter_SBR_C_32fc32f,
  500. idCtxSynthesisFilter_SBR_C_32f,
  501. idCtxSynthesisFilter_SBR_R_32f,
  502. idCtxSynthesisDownFilter_SBR_C_32fc32f,
  503. idCtxSynthesisDownFilter_SBR_C_32f,
  504. idCtxSynthesisDownFilter_SBR_R_32f,
  505. idCtxVLCEncode,
  506. idCtxVLCDecode,
  507. idCtxAnalysisFilter_SBR_C_32s32sc,
  508. idCtxAnalysisFilter_SBR_R_32s,
  509. idCtxSynthesisFilter_SBR_C_32sc32s,
  510. idCtxSynthesisFilter_SBR_R_32s,
  511. idCtxSynthesisDownFilter_SBR_C_32sc32s,
  512. idCtxSynthesisDownFilter_SBR_R_32s,
  513. idCtxSynthesisFilter_PQMF_MP3_32f,
  514. idCtxAnalysisFilter_PQMF_MP3_32f,
  515. idCtxResampleRow,
  516. idCtxAnalysisFilter_SBR_Enc_C_32f32fc,
  517. idCtxSynthesisFilter_DTS_32f,
  518. idCtxFilterBilateralGauss_8u,
  519. idCtxFilterBilateralGaussFast_8u,
  520. idCtxBGF,
  521. idCtxPolyGF,
  522. idCtxRSenc,
  523. idCtxRSdec,
  524. idCtxSnow3g = IPP_CONTEXT( 'S', 'n', 'o', 'w'),
  525. idCtxSnow3gF8,
  526. idCtxSnow3gF9,
  527. idCtxKasumi = IPP_CONTEXT( 'K', 'a', 's', 'u'),
  528. idCtxKasumiF8,
  529. idCtxKasumiF9,
  530. idCtxResizeHannFilter_8u,
  531. idCtxResizeLanczosFilter_8u,
  532. idCtxAESXCBC,
  533. idCtxAESCCM,
  534. idCtxAESGCM,
  535. idCtxMsgCatalog,
  536. idCtxGFP,
  537. idCtxGFPE,
  538. idCtxGFPX,
  539. idCtxGFPXE,
  540. idCtxGFPXQX,
  541. idCtxGFPXQXE,
  542. idCtxGFPEC,
  543. idCtxGFPPoint,
  544. idCtxGFPXEC,
  545. idCtxGFPXECPoint,
  546. idCtxPairing,
  547. idCtxResize_32f,
  548. idCtxResizeYUV420,
  549. idCtxResizeYUV422,
  550. idCtxResize_64f,
  551. idCtxFilterBilateralBorder,
  552. idCtxThresholdAdaptiveGauss,
  553. idCtxHOG,
  554. idCtxFastN,
  555. idCtxHash,
  556. idCtxSM3
  557. } IppCtxId;
  558. /* /////////////////////////////////////////////////////////////////////////////
  559. Helpers
  560. /////////////////////////////////////////////////////////////////////////// */
  561. #define IPP_NOERROR_RET() return ippStsNoErr
  562. #define IPP_ERROR_RET( ErrCode ) return (ErrCode)
  563. #ifdef _IPP_DEBUG
  564. #define IPP_BADARG_RET( expr, ErrCode )\
  565. {if (expr) { IPP_ERROR_RET( ErrCode ); }}
  566. #else
  567. #define IPP_BADARG_RET( expr, ErrCode )
  568. #endif
  569. #define IPP_BAD_SIZE_RET( n )\
  570. IPP_BADARG_RET( (n)<=0, ippStsSizeErr )
  571. #define IPP_BAD_STEP_RET( n )\
  572. IPP_BADARG_RET( (n)<=0, ippStsStepErr )
  573. #define IPP_BAD_PTR1_RET( ptr )\
  574. IPP_BADARG_RET( NULL==(ptr), ippStsNullPtrErr )
  575. #define IPP_BAD_PTR2_RET( ptr1, ptr2 )\
  576. {IPP_BAD_PTR1_RET( ptr1 ); IPP_BAD_PTR1_RET( ptr2 )}
  577. #define IPP_BAD_PTR3_RET( ptr1, ptr2, ptr3 )\
  578. {IPP_BAD_PTR2_RET( ptr1, ptr2 ); IPP_BAD_PTR1_RET( ptr3 )}
  579. #define IPP_BAD_PTR4_RET( ptr1, ptr2, ptr3, ptr4 )\
  580. {IPP_BAD_PTR2_RET( ptr1, ptr2 ); IPP_BAD_PTR2_RET( ptr3, ptr4 )}
  581. #define IPP_BAD_ISIZE_RET(roi) \
  582. IPP_BADARG_RET( ((roi).width<=0 || (roi).height<=0), ippStsSizeErr)
  583. /* ////////////////////////////////////////////////////////////////////////// */
  584. /* internal messages */
  585. #define MSG_LOAD_DLL_ERR (-9700) /* Error at loading of %s library */
  586. #define MSG_NO_DLL (-9701) /* No DLLs were found in the Waterfall procedure */
  587. #define MSG_NO_SHARED (-9702) /* No shared libraries were found in the Waterfall procedure */
  588. /* ////////////////////////////////////////////////////////////////////////// */
  589. typedef union { /* double precision */
  590. Ipp64s hex;
  591. Ipp64f fp;
  592. } IppFP_64f;
  593. typedef union { /* single precision */
  594. Ipp32s hex;
  595. Ipp32f fp;
  596. } IppFP_32f;
  597. extern const IppFP_32f ippConstantOfNAN_32f;
  598. extern const IppFP_64f ippConstantOfNAN_64f;
  599. extern const IppFP_32f ippConstantOfINF_32f;
  600. extern const IppFP_64f ippConstantOfINF_64f;
  601. extern const IppFP_32f ippConstantOfINF_NEG_32f;
  602. extern const IppFP_64f ippConstantOfINF_NEG_64f;
  603. #define NAN_32F (ippConstantOfNAN_32f.fp)
  604. #define NAN_64F (ippConstantOfNAN_64f.fp)
  605. #define INF_32F (ippConstantOfINF_32f.fp)
  606. #define INF_64F (ippConstantOfINF_64f.fp)
  607. #define INF_NEG_32F (ippConstantOfINF_NEG_32f.fp)
  608. #define INF_NEG_64F (ippConstantOfINF_NEG_64f.fp)
  609. /* ////////////////////////////////////////////////////////////////////////// */
  610. typedef enum {
  611. ippunreg=-1,
  612. ippac = 0,
  613. ippcc = 1,
  614. ippch = 2,
  615. ippcp = 3,
  616. ippcv = 4,
  617. ippdc = 5,
  618. ippdi = 6,
  619. ippgen = 7,
  620. ippi = 8,
  621. ippj = 9,
  622. ippm = 10,
  623. ippr = 11,
  624. ipps = 12,
  625. ippsc = 13,
  626. ippsr = 14,
  627. ippvc = 15,
  628. ippvm = 16,
  629. ippmsdk = 17,
  630. ippcpepid = 18,
  631. ippe = 19,
  632. ipprs = 20,
  633. ippsq = 21,
  634. ippnomore
  635. } IppDomain;
  636. int __CDECL ownGetNumThreads( void );
  637. int __CDECL ownGetFeature( Ipp64u MaskOfFeature ); /* the main function of tick-tock dispatcher */
  638. #ifdef _IPP_DYNAMIC
  639. typedef IppStatus (__STDCALL *DYN_RELOAD)( int );
  640. void __CDECL ownRegisterLib( IppDomain, DYN_RELOAD );
  641. void __CDECL ownUnregisterLib( IppDomain );
  642. #endif
  643. /* the number of threads available for any ipp function that uses OMP; */
  644. /* at the ippxx.dll loading time is equal to the number of logical processors, */
  645. /* and can be changed ONLY externally by library user to any desired number */
  646. /* by means of ippSetNumThreads() function */
  647. #define IPP_GET_NUM_THREADS() ( ownGetNumThreads() )
  648. #define IPP_OMP_NUM_THREADS() num_threads( IPP_GET_NUM_THREADS() )
  649. #define IPP_OMP_LIMIT_MAX_NUM_THREADS(n) num_threads( IPP_MIN(IPP_GET_NUM_THREADS(),(n)))
  650. /* ////////////////////////////////////////////////////////////////////////// */
  651. /* Define NULL pointer value */
  652. #ifndef NULL
  653. #ifdef __cplusplus
  654. #define NULL 0
  655. #else
  656. #define NULL ((void *)0)
  657. #endif
  658. #endif
  659. #define UNREFERENCED_PARAMETER(p) (p)=(p)
  660. #if defined( _IPP_MARK_LIBRARY )
  661. static char G[] = {73, 80, 80, 71, 101, 110, 117, 105, 110, 101, 243, 193, 210, 207, 215};
  662. #endif
  663. #define STR2(x) #x
  664. #define STR(x) STR2(x)
  665. #define MESSAGE( desc )\
  666. message(__FILE__ "(" STR(__LINE__) "):" #desc)
  667. /*
  668. // endian definition
  669. */
  670. #define IPP_LITTLE_ENDIAN (0)
  671. #define IPP_BIG_ENDIAN (1)
  672. #if defined( _IPP_LE )
  673. #define IPP_ENDIAN IPP_LITTLE_ENDIAN
  674. #elif defined( _IPP_BE )
  675. #define IPP_ENDIAN IPP_BIG_ENDIAN
  676. #else
  677. #if defined( __ARMEB__ )
  678. #define IPP_ENDIAN IPP_BIG_ENDIAN
  679. #else
  680. #define IPP_ENDIAN IPP_LITTLE_ENDIAN
  681. #endif
  682. #endif
  683. /* ////////////////////////////////////////////////////////////////////////// */
  684. /* intrinsics */
  685. #if (_IPP >= _IPP_A6) || (_IPP32E >= _IPP32E_M7)
  686. #if defined(__INTEL_COMPILER) || (_MSC_VER >= 1300)
  687. #if (_IPP == _IPP_A6)
  688. #include "xmmintrin.h"
  689. #elif (_IPP == _IPP_W7)
  690. #if defined(__INTEL_COMPILER)
  691. #include "emmintrin.h"
  692. #else
  693. #undef _W7
  694. #include "emmintrin.h"
  695. #define _W7
  696. #endif
  697. #define _mm_loadu _mm_loadu_si128
  698. #elif (_IPP == _IPP_T7) || (_IPP32E == _IPP32E_M7)
  699. #if defined(__INTEL_COMPILER)
  700. #include "pmmintrin.h"
  701. #define _mm_loadu _mm_lddqu_si128
  702. #elif (_MSC_FULL_VER >= 140050110)
  703. #include "intrin.h"
  704. #define _mm_loadu _mm_lddqu_si128
  705. #elif (_MSC_FULL_VER < 140050110)
  706. #include "emmintrin.h"
  707. #define _mm_loadu _mm_loadu_si128
  708. #endif
  709. #elif (_IPP == _IPP_V8) || (_IPP32E == _IPP32E_U8)
  710. #if defined(__INTEL_COMPILER)
  711. #include "tmmintrin.h"
  712. #define _mm_loadu _mm_lddqu_si128
  713. #elif (_MSC_FULL_VER >= 140050110)
  714. #include "intrin.h"
  715. #define _mm_loadu _mm_lddqu_si128
  716. #elif (_MSC_FULL_VER < 140050110)
  717. #include "emmintrin.h"
  718. #define _mm_loadu _mm_loadu_si128
  719. #endif
  720. #elif (_IPP == _IPP_P8) || (_IPP32E == _IPP32E_Y8)
  721. #if defined(__INTEL_COMPILER)
  722. #include "smmintrin.h"
  723. #define _mm_loadu _mm_lddqu_si128
  724. #elif (_MSC_FULL_VER >= 140050110)
  725. #include "intrin.h"
  726. #define _mm_loadu _mm_lddqu_si128
  727. #elif (_MSC_FULL_VER < 140050110)
  728. #include "emmintrin.h"
  729. #define _mm_loadu _mm_loadu_si128
  730. #endif
  731. #elif (_IPP >= _IPP_G9) || (_IPP32E >= _IPP32E_E9)
  732. #if defined(__INTEL_COMPILER)
  733. #include "immintrin.h"
  734. #define _mm_loadu _mm_lddqu_si128
  735. #elif (_MSC_FULL_VER >= 160021003)
  736. #include "immintrin.h"
  737. #define _mm_loadu _mm_lddqu_si128
  738. #endif
  739. #endif
  740. #endif
  741. #elif (_IPPLP32 >= _IPPLP32_S8) || (_IPPLP64 >= _IPPLP64_N8)
  742. #if defined(__INTEL_COMPILER)
  743. #include "tmmintrin.h"
  744. #define _mm_loadu _mm_lddqu_si128
  745. #elif (_MSC_FULL_VER >= 140050110)
  746. #include "intrin.h"
  747. #define _mm_loadu _mm_lddqu_si128
  748. #elif (_MSC_FULL_VER < 140050110)
  749. #include "emmintrin.h"
  750. #define _mm_loadu _mm_loadu_si128
  751. #endif
  752. #elif (_IPPLRB >= _IPPLRB_B2)
  753. #if defined(__INTEL_COMPILER) || defined(_REF_LIB)
  754. #include "immintrin.h"
  755. #endif
  756. #endif
  757. // **** intrinsics for bit casting ****
  758. #if defined(__INTEL_COMPILER)
  759. extern unsigned int __intel_castf32_u32(float val);
  760. extern float __intel_castu32_f32(unsigned int val);
  761. extern unsigned __int64 __intel_castf64_u64(double val);
  762. extern double __intel_castu64_f64(unsigned __int64 val);
  763. #define __CAST_32f32u(val) __intel_castf32_u32((Ipp32f)val)
  764. #define __CAST_32u32f(val) __intel_castu32_f32((Ipp32u)val)
  765. #define __CAST_64f64u(val) __intel_castf64_u64((Ipp64f)val)
  766. #define __CAST_64u64f(val) __intel_castu64_f64((Ipp64u)val)
  767. #else
  768. #define __CAST_32f32u(val) ( *((Ipp32u*)&val) )
  769. #define __CAST_32u32f(val) ( *((Ipp32f*)&val) )
  770. #define __CAST_64f64u(val) ( *((Ipp64u*)&val) )
  771. #define __CAST_64u64f(val) ( *((Ipp64f*)&val) )
  772. #endif
  773. // short names for vector registers casting
  774. #define _pd2ps _mm_castpd_ps
  775. #define _ps2pd _mm_castps_pd
  776. #define _pd2pi _mm_castpd_si128
  777. #define _pi2pd _mm_castsi128_pd
  778. #define _ps2pi _mm_castps_si128
  779. #define _pi2ps _mm_castsi128_ps
  780. #define _ypd2ypi _mm256_castpd_si256
  781. #define _ypi2ypd _mm256_castsi256_pd
  782. #define _yps2ypi _mm256_castps_si256
  783. #define _ypi2yps _mm256_castsi256_ps
  784. #define _ypd2yps _mm256_castpd_ps
  785. #define _yps2ypd _mm256_castps_pd
  786. #define _yps2ps _mm256_castps256_ps128
  787. #define _ypi2pi _mm256_castsi256_si128
  788. #define _ypd2pd _mm256_castpd256_pd128
  789. #define _ps2yps _mm256_castps128_ps256
  790. #define _pi2ypi _mm256_castsi128_si256
  791. #define _pd2ypd _mm256_castpd128_pd256
  792. #if defined(__INTEL_COMPILER)
  793. #define __IVDEP ivdep
  794. #else
  795. #define __IVDEP message("message :: 'ivdep' is not defined")
  796. #endif
  797. //usage: #pragma __IVDEP
  798. /* //////////////////////////////////////////////////////////////////////////
  799. _IPP_DATA shoul be defined only:
  800. - if compile not merged library
  801. - only for 1 CPU for merged library to avoid data duplication
  802. */
  803. #if defined( _MERGED_BLD ) && ( defined(_G9) || defined(_E9) ) /* compile data only for g9 and e9 CPU */
  804. #define _IPP_DATA 1
  805. #elif !defined( _MERGED_BLD ) /* compile data if it isn't merged library */
  806. #define _IPP_DATA 1
  807. #endif
  808. #if defined( __cplusplus )
  809. }
  810. #endif
  811. #endif /* __OWNDEFS_H__ */