123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- #ifndef __IPPBASE_H__
- #define __IPPBASE_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined( _WIN32 ) || defined ( _WIN64 )
- #define __STDCALL __stdcall
- #define __CDECL __cdecl
- #define __INT64 __int64
- #define __UINT64 unsigned __int64
- #else
- #define __STDCALL
- #define __CDECL
- #define __INT64 long long
- #define __UINT64 unsigned long long
- #endif
- #define IPP_PI ( 3.14159265358979323846 )
- #define IPP_2PI ( 6.28318530717958647692 )
- #define IPP_PI2 ( 1.57079632679489661923 )
- #define IPP_PI4 ( 0.78539816339744830961 )
- #define IPP_PI180 ( 0.01745329251994329577 )
- #define IPP_RPI ( 0.31830988618379067154 )
- #define IPP_SQRT2 ( 1.41421356237309504880 )
- #define IPP_SQRT3 ( 1.73205080756887729353 )
- #define IPP_LN2 ( 0.69314718055994530942 )
- #define IPP_LN3 ( 1.09861228866810969139 )
- #define IPP_E ( 2.71828182845904523536 )
- #define IPP_RE ( 0.36787944117144232159 )
- #define IPP_EPS23 ( 1.19209289e-07f )
- #define IPP_EPS52 ( 2.2204460492503131e-016 )
- #define IPP_MAX_8U ( 0xFF )
- #define IPP_MAX_16U ( 0xFFFF )
- #define IPP_MAX_32U ( 0xFFFFFFFF )
- #define IPP_MIN_8U ( 0 )
- #define IPP_MIN_16U ( 0 )
- #define IPP_MIN_32U ( 0 )
- #define IPP_MIN_8S (-128 )
- #define IPP_MAX_8S ( 127 )
- #define IPP_MIN_16S (-32768 )
- #define IPP_MAX_16S ( 32767 )
- #define IPP_MIN_32S (-2147483647 - 1 )
- #define IPP_MAX_32S ( 2147483647 )
- #define IPP_MIN_64U ( 0 )
- #if defined( _WIN32 ) || defined ( _WIN64 )
- #define IPP_MAX_64S ( 9223372036854775807i64 )
- #define IPP_MIN_64S (-9223372036854775807i64 - 1 )
- #define IPP_MAX_64U ( 0xffffffffffffffffL )
- #else
- #define IPP_MAX_64S ( 9223372036854775807LL )
- #define IPP_MIN_64S (-9223372036854775807LL - 1 )
- #define IPP_MAX_64U ( 0xffffffffffffffffLL )
- #endif
- #define IPP_MINABS_32F ( 1.175494351e-38f )
- #define IPP_MAXABS_32F ( 3.402823466e+38f )
- #define IPP_EPS_32F ( 1.192092890e-07f )
- #define IPP_MINABS_64F ( 2.2250738585072014e-308 )
- #define IPP_MAXABS_64F ( 1.7976931348623158e+308 )
- #define IPP_EPS_64F ( 2.2204460492503131e-016 )
- #define IPP_MAX( a, b ) ( ((a) > (b)) ? (a) : (b) )
- #define IPP_MIN( a, b ) ( ((a) < (b)) ? (a) : (b) )
- #define IPP_ABS( a ) ( ((a) < 0) ? (-(a)) : (a) )
- typedef struct {
- int major;
- int minor;
- int majorBuild;
- int build;
- char targetCpu[4];
- const char* Name;
- const char* Version;
- const char* BuildDate;
- } IppLibraryVersion;
- typedef unsigned char Ipp8u;
- typedef unsigned short Ipp16u;
- typedef unsigned int Ipp32u;
- typedef signed char Ipp8s;
- typedef signed short Ipp16s;
- typedef signed int Ipp32s;
- typedef float Ipp32f;
- typedef __INT64 Ipp64s;
- typedef __UINT64 Ipp64u;
- typedef double Ipp64f;
- typedef Ipp16s Ipp16f;
- typedef struct {
- Ipp8s re;
- Ipp8s im;
- } Ipp8sc;
- typedef struct {
- Ipp16s re;
- Ipp16s im;
- } Ipp16sc;
- typedef struct {
- Ipp16u re;
- Ipp16u im;
- } Ipp16uc;
- typedef struct {
- Ipp32s re;
- Ipp32s im;
- } Ipp32sc;
- typedef struct {
- Ipp32f re;
- Ipp32f im;
- } Ipp32fc;
- typedef struct {
- Ipp64s re;
- Ipp64s im;
- } Ipp64sc;
- typedef struct {
- Ipp64f re;
- Ipp64f im;
- } Ipp64fc;
- typedef enum {
- ippUndef = -1,
- ipp1u = 0,
- ipp8u = 1,
- ipp8uc = 2,
- ipp8s = 3,
- ipp8sc = 4,
- ipp16u = 5,
- ipp16uc = 6,
- ipp16s = 7,
- ipp16sc = 8,
- ipp32u = 9,
- ipp32uc = 10,
- ipp32s = 11,
- ipp32sc = 12,
- ipp32f = 13,
- ipp32fc = 14,
- ipp64u = 15,
- ipp64uc = 16,
- ipp64s = 17,
- ipp64sc = 18,
- ipp64f = 19,
- ipp64fc = 20
- } IppDataType;
- typedef enum {
- ippFalse = 0,
- ippTrue = 1
- } IppBool;
- #ifdef __cplusplus
- }
- #endif
- #endif
|