|
#define | SPB_CHECK_VERSION(version, revision, update) |
|
#define | spLONG long |
|
#define | spULONG unsigned long |
|
#define | spDWORD spULONG |
|
#define | spINT8 signed char |
|
#define | spINT16 short |
|
#define | spBYTE unsigned char |
|
#define | spWORD unsigned short |
|
#define | SP_TRUE 1 |
|
#define | SP_FALSE 0 |
|
#define | SP_TRUE_STRING "1" |
|
#define | SP_FALSE_STRING "0" |
|
#define | SP_SUCCESS 1 |
|
#define | SP_FAILURE 0 |
|
#define | SP_PATHLIST_SEPARATOR ':' |
|
#define | spMax(a, b) ((a) > (b) ? (a) : (b)) |
|
#define | spMin(a, b) ((a) < (b) ? (a) : (b)) |
|
#define | spAbs(x) ((x) >= 0 ? (x) : -(x)) |
|
#define | spCAbs(xr, xi) sqrt((double)(xr)*(double)(xr)+(double)(xi)*(double)(xi)) |
|
#define | spCAbsf(xr, xi) sqrtf((float)((xr)*(xr)+(xi)*(xi))) |
|
#define | spSquare(x) ((x) * (x)) |
|
#define | spCSquare(xr, xi) ((xr)*(xr)+(xi)*(xi)) |
|
#define | spPow2(p) (1 << (long)(p)) |
|
#define | spArraySize(array) ((unsigned int)(sizeof(array) / sizeof(array[0]))) |
|
#define | spStrEq(s1, s2) ((s1 != NULL) && (s2 != NULL) && (strcmp((s1), (s2)) == 0) ? 1 : 0) |
|
#define | spStrNEq(s1, s2, n) ((s1 != NULL) && (s2 != NULL) && (strncmp((s1), (s2), n) == 0) ? 1 : 0) |
|
#define | spStrVEq(s1, s2) ((s1 != NULL) && (s2 != NULL) && (strncmp((s1), (s2), strlen(s2)) == 0) ? 1 : 0) |
|
#define | spStrNone(string) (((string) == NULL || *(string) == NUL) ? 1 : 0) |
|
#define | spIsTrue(flag) ((flag) != SP_FALSE ? SP_TRUE : SP_FALSE) |
|
#define | spIsFalse(flag) ((flag) == SP_FALSE ? SP_TRUE : SP_FALSE) |
|
#define | spdBf(x) (20.0f * log10f((float)((x) <= 0.0f ? SP_TINY_NUMBER : (x)))) |
|
#define | spdB(x) (20.0 * log10((double)((x) <= 0.0 ? SP_TINY_NUMBER : (x)))) |
|
#define | spdBpowf(x) (10.0f * log10f((float)((x) <= 0.0f ? SP_TINY_NUMBER : (x)))) |
|
#define | spdBpow(x) (10.0 * log10((double)((x) <= 0.0 ? SP_TINY_NUMBER : (x)))) |
|
#define | spOffset(typep, field) ((int) (((char *) (&(((typep)0)->field))) - ((char *)0))) |
|
#define | spOffsetOf(type, field) spOffset(type*, field) |
|
#define | SP_NUL '\0' |
|