ippdefs.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. // Copyright 1999 2016 Intel Corporation All Rights Reserved.
  3. //
  4. // The source code, information and material ("Material") contained herein is
  5. // owned by Intel Corporation or its suppliers or licensors, and title
  6. // to such Material remains with Intel Corporation or its suppliers or
  7. // licensors. The Material contains proprietary information of Intel
  8. // or its suppliers and licensors. The Material is protected by worldwide
  9. // copyright laws and treaty provisions. No part of the Material may be used,
  10. // copied, reproduced, modified, published, uploaded, posted, transmitted,
  11. // distributed or disclosed in any way without Intel's prior express written
  12. // permission. No license under any patent, copyright or other intellectual
  13. // property rights in the Material is granted to or conferred upon you,
  14. // either expressly, by implication, inducement, estoppel or otherwise.
  15. // Any license under such intellectual property rights must be express and
  16. // approved by Intel in writing.
  17. //
  18. // Unless otherwise agreed by Intel in writing,
  19. // you may not remove or alter this notice or any other notice embedded in
  20. // Materials by Intel or Intel's suppliers or licensors in any way.
  21. //
  22. */
  23. /*
  24. // Intel(R) Integrated Performance Primitives
  25. // Common Types and Macro Definitions
  26. //
  27. //
  28. */
  29. #ifndef __IPPDEFS_H__
  30. #define __IPPDEFS_H__
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if defined (_WIN64)
  35. #define _INTEL_PLATFORM "intel64/"
  36. #elif defined (_WIN32)
  37. #define _INTEL_PLATFORM "ia32/"
  38. #endif
  39. #if !defined( IPPAPI )
  40. #if defined( IPP_W32DLL ) && (defined( _WIN32 ) || defined( _WIN64 ))
  41. #if defined( _MSC_VER ) || defined( __ICL )
  42. #define IPPAPI( type,name,arg ) \
  43. __declspec(dllimport) type __STDCALL name arg;
  44. #else
  45. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  46. #endif
  47. #else
  48. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  49. #endif
  50. #endif
  51. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER)) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  52. #if( __INTEL_COMPILER >= 1100 ) /* icl 11.0 supports additional comment */
  53. #if( _MSC_VER >= 1400 )
  54. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  55. #else
  56. #pragma message ("your icl version supports additional comment for deprecated functions but it can't be displayed")
  57. #pragma message ("because internal _MSC_VER macro variable setting requires compatibility with MSVC7.1")
  58. #pragma message ("use -Qvc8 switch for icl command line to see these additional comments")
  59. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  60. #endif
  61. #elif( _MSC_FULL_VER >= 140050727 )&&( !defined( __INTEL_COMPILER )) /* VS2005 supports additional comment */
  62. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  63. #elif( _MSC_VER <= 1200 )&&( !defined( __INTEL_COMPILER )) /* VS 6 doesn't support deprecation */
  64. #define IPP_DEPRECATED( comment )
  65. #else
  66. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  67. #endif
  68. #elif (defined(__ICC) || defined(__ECC) || defined( __GNUC__ )) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  69. #if defined( __GNUC__ )
  70. #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 5
  71. #define IPP_DEPRECATED( message ) __attribute__(( deprecated( message )))
  72. #else
  73. #define IPP_DEPRECATED( message ) __attribute__(( deprecated ))
  74. #endif
  75. #else
  76. #define IPP_DEPRECATED( comment ) __attribute__(( deprecated ))
  77. #endif
  78. #else
  79. #define IPP_DEPRECATED( comment )
  80. #endif
  81. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER))
  82. #if !defined( _IPP_NO_DEFAULT_LIB )
  83. #if (( defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  84. (!defined( _IPP_PARALLEL_DYNAMIC ) && defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  85. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  86. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && defined( _IPP_SEQUENTIAL_STATIC )))
  87. #elif (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC ))
  88. #define _IPP_NO_DEFAULT_LIB
  89. #else
  90. #error Illegal combination of _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC, only one definition can be defined
  91. #endif
  92. #endif
  93. #else
  94. #define _IPP_NO_DEFAULT_LIB
  95. #if (defined( _IPP_PARALLEL_DYNAMIC ) || defined( _IPP_PARALLEL_STATIC ) || defined(_IPP_SEQUENTIAL_DYNAMIC) || defined(_IPP_SEQUENTIAL_STATIC))
  96. #pragma message ("defines _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC do not have any effect in current configuration")
  97. #endif
  98. #endif
  99. #if !defined( _IPP_NO_DEFAULT_LIB )
  100. #if defined( _IPP_PARALLEL_STATIC )
  101. #pragma comment( lib, "libiomp5md" )
  102. #endif
  103. #endif
  104. #include "ippbase.h"
  105. #include "ipptypes.h"
  106. extern const IppiRect ippRectInfinite;
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110. #endif /* __IPPDEFS_H__ */