Go to the documentation of this file. 9 #define MALLOC(x) calloc(1,(unsigned)(x)) 10 #define FREE(x) {if (x) {free((char *)(x));(x) = 0;}} 13 #ifndef STDLIB_IS_INCLUDED 14 #define STDLIB_IS_INCLUDED 29 #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) 32 #define DEBUGMSG(textargs) printf(textargs) 34 #define DEBUGMSG(testargs) 38 #define FABS(a) fabs(a) 41 #define FABS(a) ( ((a)<0) ? -(a) : (a) ) 48 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 52 #define MAX(a,b) ((a) > (b) ? (a) : (b)) 56 #define SIGN(a,b) ( b >= 0 ? (a >= 0 ? a : - a) : (a >= 0 ? - a : a)) 61 #define ABORT() fflush(stderr);fflush(stdout);abort(); 66 #define ERROR(CODE,MESSAGE) { \ 67 errMsg = MALLOC(strlen(MESSAGE) + 1); \ 68 strcpy(errMsg, (MESSAGE)); \ 74 #define NEW(TYPE) ((TYPE *) MALLOC(sizeof(TYPE))) 78 #define R_NORM(A,B) { \ 82 while (FABS(A) > 1.0) { \ 86 while (FABS(A) < 0.5) { \