Go to the documentation of this file.
57 #ifdef MATLAB_MEX_FILE
59 #define Malloc(s) mxMalloc(s)
60 #define Free(p) mxFree(p)
64 #define Malloc(s) MallocWithErrorMessage(s)
67 #define Realloc(p, s) ReallocWithErrorMessage(p, s)
70 #define Free(p) free(p)
75 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
78 typedef unsigned __int8 uint8_t;
79 typedef unsigned __int16 uint16_t;
80 typedef unsigned __int32 uint32_t;
81 typedef __int8 int8_t;
82 typedef __int16 int16_t;
83 typedef __int32 int32_t;
96 #define M_2PI 6.28318530717958647692528676655900576
100 #define M_PI 3.14159265358979323846264338327950288
104 #define M_PI_2 1.57079632679489661923132169163975144
108 #define M_PI_4 0.78539816339744830961566084581987572
112 #define M_PI_8 0.39269908169872415480783042290993786
116 #define M_SQRT2 1.41421356237309504880168872420969808
120 #define M_1_SQRT2 0.70710678118654752440084436210484904
124 #define M_E 2.71828182845904523536028747135266250
128 #define M_LOG2E 1.44269504088896340735992468100189213
132 #define M_LOG10E 0.43429448190325182765112891891660508
136 #define M_LN2 0.69314718055994530941723212145817657
140 #define M_LN10 2.30258509299404568401799145468436421
144 #define M_EULER 0.57721566490153286060651209008240243
148 #define ROUND(X) (floor((X) + 0.5))
151 #define ROUNDF(X) (floor((X) + 0.5f))
155 #ifndef ATTRIBUTE_UNUSED
157 #define ATTRIBUTE_UNUSED __attribute__((unused))
159 #ifndef ATTRIBUTE_ALWAYSINLINE
161 #define ATTRIBUTE_ALWAYSINLINE __attribute__((always_inline))
164 #define ATTRIBUTE_UNUSED
165 #define ATTRIBUTE_ALWAYSINLINE
173 unsigned long Clock();