ippdefs.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * Copyright (C) 2016 Intel Corporation. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in
  12. * the documentation and/or other materials provided with the
  13. * distribution.
  14. * * Neither the name of Intel Corporation nor the names of its
  15. * contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. *
  30. */
  31. #ifndef __IPPDEFS_H__
  32. #define __IPPDEFS_H__
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. #if defined (_WIN64)
  37. #define _INTEL_PLATFORM "intel64/"
  38. #elif defined (_WIN32)
  39. #define _INTEL_PLATFORM "ia32/"
  40. #endif
  41. #if !defined( IPPAPI )
  42. #if defined( IPP_W32DLL ) && (defined( _WIN32 ) || defined( _WIN64 ))
  43. #if defined( _MSC_VER ) || defined( __ICL )
  44. #define IPPAPI( type,name,arg ) \
  45. __declspec(dllimport) type __STDCALL name arg;
  46. #else
  47. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  48. #endif
  49. #else
  50. #define IPPAPI( type,name,arg ) type __STDCALL name arg;
  51. #endif
  52. #endif
  53. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER)) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  54. #if( __INTEL_COMPILER >= 1100 ) /* icl 11.0 supports additional comment */
  55. #if( _MSC_VER >= 1400 )
  56. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  57. #else
  58. #pragma message ("your icl version supports additional comment for deprecated functions but it can't be displayed")
  59. #pragma message ("because internal _MSC_VER macro variable setting requires compatibility with MSVC7.1")
  60. #pragma message ("use -Qvc8 switch for icl command line to see these additional comments")
  61. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  62. #endif
  63. #elif( _MSC_FULL_VER >= 140050727 )&&( !defined( __INTEL_COMPILER )) /* VS2005 supports additional comment */
  64. #define IPP_DEPRECATED( comment ) __declspec( deprecated ( comment ))
  65. #elif( _MSC_VER <= 1200 )&&( !defined( __INTEL_COMPILER )) /* VS 6 doesn't support deprecation */
  66. #define IPP_DEPRECATED( comment )
  67. #else
  68. #define IPP_DEPRECATED( comment ) __declspec( deprecated )
  69. #endif
  70. #elif (defined(__ICC) || defined(__ECC) || defined( __GNUC__ )) && !defined( _PCS ) && !defined( _PCS_GENSTUBS )
  71. #if defined( __GNUC__ )
  72. #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 5
  73. #define IPP_DEPRECATED( message ) __attribute__(( deprecated( message )))
  74. #else
  75. #define IPP_DEPRECATED( message ) __attribute__(( deprecated ))
  76. #endif
  77. #else
  78. #define IPP_DEPRECATED( comment ) __attribute__(( deprecated ))
  79. #endif
  80. #else
  81. #define IPP_DEPRECATED( comment )
  82. #endif
  83. #if (defined( __ICL ) || defined( __ECL ) || defined(_MSC_VER))
  84. #if !defined( _IPP_NO_DEFAULT_LIB )
  85. #if (( 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. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC )) || \
  88. (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && defined( _IPP_SEQUENTIAL_STATIC )))
  89. #elif (!defined( _IPP_PARALLEL_DYNAMIC ) && !defined( _IPP_PARALLEL_STATIC ) && !defined( _IPP_SEQUENTIAL_DYNAMIC ) && !defined( _IPP_SEQUENTIAL_STATIC ))
  90. #define _IPP_NO_DEFAULT_LIB
  91. #else
  92. #error Illegal combination of _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC, only one definition can be defined
  93. #endif
  94. #endif
  95. #else
  96. #define _IPP_NO_DEFAULT_LIB
  97. #if (defined( _IPP_PARALLEL_DYNAMIC ) || defined( _IPP_PARALLEL_STATIC ) || defined(_IPP_SEQUENTIAL_DYNAMIC) || defined(_IPP_SEQUENTIAL_STATIC))
  98. #pragma message ("defines _IPP_PARALLEL_DYNAMIC/_IPP_PARALLEL_STATIC/_IPP_SEQUENTIAL_DYNAMIC/_IPP_SEQUENTIAL_STATIC do not have any effect in current configuration")
  99. #endif
  100. #endif
  101. #if !defined( _IPP_NO_DEFAULT_LIB )
  102. #if defined( _IPP_PARALLEL_STATIC )
  103. #pragma comment( lib, "libircmt" )
  104. #pragma comment( lib, "libmmt" )
  105. #pragma comment( lib, "svml_dispmt" )
  106. #pragma comment( lib, "libiomp5md" )
  107. #endif
  108. #endif
  109. #include "ippbase.h"
  110. #include "ipptypes.h"
  111. extern const IppiRect ippRectInfinite;
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115. #endif /* __IPPDEFS_H__ */