ippdefs.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. // Intel(R) Integrated Performance Primitives
  18. // Common Types and Macro Definitions
  19. //
  20. //
  21. */
  22. #ifndef __IPPDEFS_H__
  23. #define __IPPDEFS_H__
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #if defined( _IPP_PARALLEL_STATIC ) || defined( _IPP_PARALLEL_DYNAMIC )
  28. #pragma message("Threaded versions of IPP libraries are deprecated and will be removed in one of the future IPP releases. Use the following link for details: https://software.intel.com/sites/products/ipp-deprecated-features-feedback/")
  29. #endif
  30. #if defined (_WIN64)
  31. #define _INTEL_PLATFORM "intel64/"
  32. #elif defined (_WIN32)
  33. #define _INTEL_PLATFORM "ia32/"
  34. #endif
  35. #if !defined( IPPAPI )
  36. #if defined( IPP_W32DLL ) && (defined( _WIN32 ) || defined( _WIN64 ))
  37. #if defined( _MSC_VER ) || defined( __ICL )
  38. #define IPPAPI( type,name,arg ) \
  39. __declspec(dllimport) type __STDCALL name arg;
  40. #else
  41. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  42. #endif
  43. #else
  44. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  45. #endif
  46. #endif
  47. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER)) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  48. #if( __INTEL_COMPILER >= 1100 ) /* icl 11.0 supports additional comment */
  49. #if( _MSC_VER >= 1400 )
  50. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  51. #else
  52. #pragma message ("your icl version supports additional comment for deprecated functions but it can't be displayed")
  53. #pragma message ("because internal _MSC_VER macro variable setting requires compatibility with MSVC7.1")
  54. #pragma message ("use -Qvc8 switch for icl command line to see these additional comments")
  55. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  56. #endif
  57. #elif( _MSC_FULL_VER >= 140050727 )&&( !defined( __INTEL_COMPILER )) /* VS2005 supports additional comment */
  58. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  59. #elif( _MSC_VER <= 1200 )&&( !defined( __INTEL_COMPILER )) /* VS 6 doesn't support deprecation */
  60. #define IPP_DEPRECATED( comment )
  61. #else
  62. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  63. #endif
  64. #elif (defined(__ICC) || defined(__ECC) || defined( __GNUC__ )) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  65. #if defined( __GNUC__ )
  66. #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 5
  67. #define IPP_DEPRECATED( message ) __attribute__(( deprecated( message )))
  68. #else
  69. #define IPP_DEPRECATED( message ) __attribute__(( deprecated ))
  70. #endif
  71. #else
  72. #define IPP_DEPRECATED( comment ) __attribute__(( deprecated ))
  73. #endif
  74. #else
  75. #define IPP_DEPRECATED( comment )
  76. #endif
  77. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER))
  78. #if !defined( _IPP_NO_DEFAULT_LIB )
  79. #if (( defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  80. (!defined( _IPP_PARALLEL_DYNAMIC ) && defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  81. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  82. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && defined( _IPP_SEQUENTIAL_STATIC )))
  83. #elif (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC ))
  84. #define _IPP_NO_DEFAULT_LIB
  85. #else
  86. #error Illegal combination of _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC, only one definition can be defined
  87. #endif
  88. #endif
  89. #else
  90. #define _IPP_NO_DEFAULT_LIB
  91. #if (defined( _IPP_PARALLEL_DYNAMIC ) || defined( _IPP_PARALLEL_STATIC ) || defined(_IPP_SEQUENTIAL_DYNAMIC) || defined(_IPP_SEQUENTIAL_STATIC))
  92. #pragma message ("defines _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC do not have any effect in current configuration")
  93. #endif
  94. #endif
  95. #if !defined( _IPP_NO_DEFAULT_LIB )
  96. #if defined( _IPP_PARALLEL_STATIC )
  97. #pragma comment( lib, "libircmt" )
  98. #pragma comment( lib, "libmmt" )
  99. #pragma comment( lib, "svml_dispmt" )
  100. #pragma comment( lib, "libiomp5md" )
  101. #endif
  102. #endif
  103. #include "ippbase.h"
  104. #include "ipptypes.h"
  105. extern const IppiRect ippRectInfinite;
  106. #ifdef __cplusplus
  107. }
  108. #endif
  109. #endif /* __IPPDEFS_H__ */