util.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ZERO(PTR, TYPE)   (bzero((PTR),sizeof(TYPE)))
#define TRUE   1
#define FALSE   0
#define DEBUGMSG(testargs)
#define FABS(a)   ( ((a)<0) ? -(a) : (a) )
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define SIGN(a, b)   ( b >= 0 ? (a >= 0 ? a : - a) : (a >= 0 ? - a : a))
#define ABORT()   fflush(stderr);fflush(stdout);abort();
#define ERROR(CODE, MESSAGE)
#define NEW(TYPE)   ((TYPE *) MALLOC(sizeof(TYPE)))
#define NEWN(TYPE, COUNT)   ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT)))
#define NEW_SM(TYPE)   ((TYPE *) MALLOC_SM(sizeof(TYPE)))
#define NEWN_SM(TYPE, COUNT)   ((TYPE *) MALLOC_SM(sizeof(TYPE) * (COUNT)))
#define R_NORM(A, B)
#define MOD_01   here->method.curr ^= (long) 00000000000000000000001;
#define MOD_02   here->method.curr ^= (long) 00000000000000000000002;
#define MOD_03   here->method.curr ^= (long) 00000000000000000000004;
#define MOD_04   here->method.curr ^= (long) 00000000000000000000010;
#define MOD_05   here->method.curr ^= (long) 00000000000000000000020;
#define MOD_06   here->method.curr ^= (long) 00000000000000000000040;
#define MOD_07   here->method.curr ^= (long) 00000000000000000000100;
#define MOD_08   here->method.curr ^= (long) 00000000000000000000200;
#define MOD_09   here->method.curr ^= (long) 00000000000000000000400;
#define MOD_10   here->method.curr ^= (long) 00000000000000000001000;
#define MOD_11   here->method.curr ^= (long) 00000000000000000002000;
#define MOD_12   here->method.curr ^= (long) 00000000000000000004000;
#define MOD_13   here->method.curr ^= (long) 00000000000000000010000;
#define MOD_14   here->method.curr ^= (long) 00000000000000000020000;
#define MOD_15   here->method.curr ^= (long) 00000000000000000040000;
#define MOD_16   here->method.curr ^= (long) 00000000000000000100000;
#define MOD_17   here->method.curr ^= (long) 00000000000000000200000;
#define MOD_18   here->method.curr ^= (long) 00000000000000000400000;
#define MOD_19   here->method.curr ^= (long) 00000000000000001000000;
#define MOD_20   here->method.curr ^= (long) 00000000000000002000000;
#define MOD_21   here->method.curr ^= (long) 00000000000000004000000;
#define MOD_22   here->method.curr ^= (long) 00000000000000010000000;
#define MOD_23   here->method.curr ^= (long) 00000000000000020000000;
#define MOD_24   here->method.curr ^= (long) 00000000000000040000000;
#define MOD_25   here->method.curr ^= (long) 00000000000000100000000;
#define MOD_26   here->method.curr ^= (long) 00000000000000200000000;
#define MOD_27   here->method.curr ^= (long) 00000000000000400000000;
#define MOD_28   here->method.curr ^= (long) 00000000000001000000000;
#define MOD_29   here->method.curr ^= (long) 00000000000002000000000;
#define MOD_30   here->method.curr ^= (long) 00000000000004000000000;
#define MOD_31   here->method.curr ^= (long) 00000000000010000000000;
#define MOD_32   here->method.curr ^= (long) 00000000000020000000000;
#define MOD_33   here->method.curr ^= (long) 00000000000040000000000;
#define MOD_34   here->method.curr ^= (long) 00000000000100000000000;
#define MOD_35   here->method.curr ^= (long) 00000000000200000000000;
#define MOD_36   here->method.curr ^= (long) 00000000000400000000000;
#define MOD_37   here->method.curr ^= (long) 00000000001000000000000;
#define MOD_38   here->method.curr ^= (long) 00000000002000000000000;
#define MOD_39   here->method.curr ^= (long) 00000000004000000000000;
#define MOD_40   here->method.curr ^= (long) 00000000010000000000000;
#define MOD_41   here->method.curr ^= (long) 00000000020000000000000;
#define MOD_42   here->method.curr ^= (long) 00000000040000000000000;
#define MOD_43   here->method.curr ^= (long) 00000000100000000000000;
#define MOD_44   here->method.curr ^= (long) 00000000200000000000000;
#define MOD_45   here->method.curr ^= (long) 00000000400000000000000;
#define MOD_46   here->method.curr ^= (long) 00000001000000000000000;
#define MOD_47   here->method.curr ^= (long) 00000002000000000000000;
#define MOD_48   here->method.curr ^= (long) 00000004000000000000000;
#define MOD_49   here->method.curr ^= (long) 00000010000000000000000;
#define MOD_50   here->method.curr ^= (long) 00000020000000000000000;
#define MOD_51   here->method.curr ^= (long) 00000040000000000000000;
#define MOD_52   here->method.curr ^= (long) 00000100000000000000000;
#define MOD_53   here->method.curr ^= (long) 00000200000000000000000;
#define MOD_54   here->method.curr ^= (long) 00000400000000000000000;
#define MOD_55   here->method.curr ^= (long) 00001000000000000000000;
#define MOD_56   here->method.curr ^= (long) 00002000000000000000000;
#define MOD_57   here->method.curr ^= (long) 00004000000000000000000;
#define MOD_58   here->method.curr ^= (long) 00010000000000000000000;
#define MOD_59   here->method.curr ^= (long) 00020000000000000000000;
#define MOD_60   here->method.curr ^= (long) 00040000000000000000000;
#define MOD_61   here->method.curr ^= (long) 00100000000000000000000;
#define MOD_62   here->method.curr ^= (long) 00200000000000000000000;
#define MOD_63   here->method.curr ^= (long) 00400000000000000000000;
#define MOD_64   here->method.curr ^= (long) 01000000000000000000000;

Functions

char * MALLOC (unsigned)
char * REALLOC (char *, unsigned)
void FREE (char *)
void * malloc ()
void * calloc ()
void * realloc ()
void free ()
char * trealloc ()
char * tmalloc ()


Define Documentation

#define ZERO PTR,
TYPE   )     (bzero((PTR),sizeof(TYPE)))
 

Definition at line 45 of file util.h.

#define TRUE   1
 

Definition at line 62 of file util.h.

#define FALSE   0
 

Definition at line 63 of file util.h.

#define DEBUGMSG testargs   ) 
 

Definition at line 68 of file util.h.

#define FABS  )     ( ((a)<0) ? -(a) : (a) )
 

Definition at line 75 of file util.h.

#define MIN a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 79 of file util.h.

#define MAX a,
 )     ((a) > (b) ? (a) : (b))
 

Definition at line 80 of file util.h.

#define SIGN a,
 )     ( b >= 0 ? (a >= 0 ? a : - a) : (a >= 0 ? - a : a))
 

Definition at line 81 of file util.h.

 
#define ABORT  )     fflush(stderr);fflush(stdout);abort();
 

Definition at line 83 of file util.h.

#define ERROR CODE,
MESSAGE   ) 
 

Value:

{               \
  errMsg = MALLOC(strlen(MESSAGE) + 1);             \
  strcpy(errMsg, (MESSAGE));                \
  return (CODE);                    \
  }

Definition at line 85 of file util.h.

#define NEW TYPE   )     ((TYPE *) MALLOC(sizeof(TYPE)))
 

Definition at line 91 of file util.h.

#define NEWN TYPE,
COUNT   )     ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT)))
 

Definition at line 92 of file util.h.

#define NEW_SM TYPE   )     ((TYPE *) MALLOC_SM(sizeof(TYPE)))
 

Definition at line 93 of file util.h.

#define NEWN_SM TYPE,
COUNT   )     ((TYPE *) MALLOC_SM(sizeof(TYPE) * (COUNT)))
 

Definition at line 94 of file util.h.

#define R_NORM A,
 ) 
 

Value:

{                   \
  if ((A) == 0.0) {                 \
      (B) = 0;                    \
  } else {                    \
      while (FABS(A) > 1.0) {               \
    (B) += 1;                 \
    (A) /= 2.0;                 \
      }                     \
      while (FABS(A) < 0.5) {               \
    (B) -= 1;                 \
    (A) *= 2.0;                 \
      }                     \
  }                     \
    }

Definition at line 98 of file util.h.

#define MOD_01   here->method.curr ^= (long) 00000000000000000000001;
 

Definition at line 113 of file util.h.

#define MOD_02   here->method.curr ^= (long) 00000000000000000000002;
 

Definition at line 114 of file util.h.

#define MOD_03   here->method.curr ^= (long) 00000000000000000000004;
 

Definition at line 115 of file util.h.

#define MOD_04   here->method.curr ^= (long) 00000000000000000000010;
 

Definition at line 116 of file util.h.

#define MOD_05   here->method.curr ^= (long) 00000000000000000000020;
 

Definition at line 117 of file util.h.

#define MOD_06   here->method.curr ^= (long) 00000000000000000000040;
 

Definition at line 118 of file util.h.

#define MOD_07   here->method.curr ^= (long) 00000000000000000000100;
 

Definition at line 119 of file util.h.

#define MOD_08   here->method.curr ^= (long) 00000000000000000000200;
 

Definition at line 120 of file util.h.

#define MOD_09   here->method.curr ^= (long) 00000000000000000000400;
 

Definition at line 121 of file util.h.

#define MOD_10   here->method.curr ^= (long) 00000000000000000001000;
 

Definition at line 122 of file util.h.

#define MOD_11   here->method.curr ^= (long) 00000000000000000002000;
 

Definition at line 123 of file util.h.

#define MOD_12   here->method.curr ^= (long) 00000000000000000004000;
 

Definition at line 124 of file util.h.

#define MOD_13   here->method.curr ^= (long) 00000000000000000010000;
 

Definition at line 125 of file util.h.

#define MOD_14   here->method.curr ^= (long) 00000000000000000020000;
 

Definition at line 126 of file util.h.

#define MOD_15   here->method.curr ^= (long) 00000000000000000040000;
 

Definition at line 127 of file util.h.

#define MOD_16   here->method.curr ^= (long) 00000000000000000100000;
 

Definition at line 128 of file util.h.

#define MOD_17   here->method.curr ^= (long) 00000000000000000200000;
 

Definition at line 129 of file util.h.

#define MOD_18   here->method.curr ^= (long) 00000000000000000400000;
 

Definition at line 130 of file util.h.

#define MOD_19   here->method.curr ^= (long) 00000000000000001000000;
 

Definition at line 131 of file util.h.

#define MOD_20   here->method.curr ^= (long) 00000000000000002000000;
 

Definition at line 132 of file util.h.

#define MOD_21   here->method.curr ^= (long) 00000000000000004000000;
 

Definition at line 133 of file util.h.

#define MOD_22   here->method.curr ^= (long) 00000000000000010000000;
 

Definition at line 134 of file util.h.

#define MOD_23   here->method.curr ^= (long) 00000000000000020000000;
 

Definition at line 135 of file util.h.

#define MOD_24   here->method.curr ^= (long) 00000000000000040000000;
 

Definition at line 136 of file util.h.

#define MOD_25   here->method.curr ^= (long) 00000000000000100000000;
 

Definition at line 137 of file util.h.

#define MOD_26   here->method.curr ^= (long) 00000000000000200000000;
 

Definition at line 138 of file util.h.

#define MOD_27   here->method.curr ^= (long) 00000000000000400000000;
 

Definition at line 139 of file util.h.

#define MOD_28   here->method.curr ^= (long) 00000000000001000000000;
 

Definition at line 140 of file util.h.

#define MOD_29   here->method.curr ^= (long) 00000000000002000000000;
 

Definition at line 141 of file util.h.

#define MOD_30   here->method.curr ^= (long) 00000000000004000000000;
 

Definition at line 142 of file util.h.

#define MOD_31   here->method.curr ^= (long) 00000000000010000000000;
 

Definition at line 143 of file util.h.

#define MOD_32   here->method.curr ^= (long) 00000000000020000000000;
 

Definition at line 144 of file util.h.

#define MOD_33   here->method.curr ^= (long) 00000000000040000000000;
 

Definition at line 145 of file util.h.

#define MOD_34   here->method.curr ^= (long) 00000000000100000000000;
 

Definition at line 146 of file util.h.

#define MOD_35   here->method.curr ^= (long) 00000000000200000000000;
 

Definition at line 147 of file util.h.

#define MOD_36   here->method.curr ^= (long) 00000000000400000000000;
 

Definition at line 148 of file util.h.

#define MOD_37   here->method.curr ^= (long) 00000000001000000000000;
 

Definition at line 149 of file util.h.

#define MOD_38   here->method.curr ^= (long) 00000000002000000000000;
 

Definition at line 150 of file util.h.

#define MOD_39   here->method.curr ^= (long) 00000000004000000000000;
 

Definition at line 151 of file util.h.

#define MOD_40   here->method.curr ^= (long) 00000000010000000000000;
 

Definition at line 152 of file util.h.

#define MOD_41   here->method.curr ^= (long) 00000000020000000000000;
 

Definition at line 153 of file util.h.

#define MOD_42   here->method.curr ^= (long) 00000000040000000000000;
 

Definition at line 154 of file util.h.

#define MOD_43   here->method.curr ^= (long) 00000000100000000000000;
 

Definition at line 155 of file util.h.

#define MOD_44   here->method.curr ^= (long) 00000000200000000000000;
 

Definition at line 156 of file util.h.

#define MOD_45   here->method.curr ^= (long) 00000000400000000000000;
 

Definition at line 157 of file util.h.

#define MOD_46   here->method.curr ^= (long) 00000001000000000000000;
 

Definition at line 158 of file util.h.

#define MOD_47   here->method.curr ^= (long) 00000002000000000000000;
 

Definition at line 159 of file util.h.

#define MOD_48   here->method.curr ^= (long) 00000004000000000000000;
 

Definition at line 160 of file util.h.

#define MOD_49   here->method.curr ^= (long) 00000010000000000000000;
 

Definition at line 161 of file util.h.

#define MOD_50   here->method.curr ^= (long) 00000020000000000000000;
 

Definition at line 162 of file util.h.

#define MOD_51   here->method.curr ^= (long) 00000040000000000000000;
 

Definition at line 163 of file util.h.

#define MOD_52   here->method.curr ^= (long) 00000100000000000000000;
 

Definition at line 164 of file util.h.

#define MOD_53   here->method.curr ^= (long) 00000200000000000000000;
 

Definition at line 165 of file util.h.

#define MOD_54   here->method.curr ^= (long) 00000400000000000000000;
 

Definition at line 166 of file util.h.

#define MOD_55   here->method.curr ^= (long) 00001000000000000000000;
 

Definition at line 167 of file util.h.

#define MOD_56   here->method.curr ^= (long) 00002000000000000000000;
 

Definition at line 168 of file util.h.

#define MOD_57   here->method.curr ^= (long) 00004000000000000000000;
 

Definition at line 169 of file util.h.

#define MOD_58   here->method.curr ^= (long) 00010000000000000000000;
 

Definition at line 170 of file util.h.

#define MOD_59   here->method.curr ^= (long) 00020000000000000000000;
 

Definition at line 171 of file util.h.

#define MOD_60   here->method.curr ^= (long) 00040000000000000000000;
 

Definition at line 172 of file util.h.

#define MOD_61   here->method.curr ^= (long) 00100000000000000000000;
 

Definition at line 173 of file util.h.

#define MOD_62   here->method.curr ^= (long) 00200000000000000000000;
 

Definition at line 174 of file util.h.

#define MOD_63   here->method.curr ^= (long) 00400000000000000000000;
 

Definition at line 175 of file util.h.

#define MOD_64   here->method.curr ^= (long) 01000000000000000000000;
 

Definition at line 176 of file util.h.


Function Documentation

char* MALLOC unsigned   ) 
 

char* REALLOC char *  ,
unsigned 
 

void FREE char *   ) 
 

void* malloc  ) 
 

void* calloc  ) 
 

void* realloc  ) 
 

void free  ) 
 

char* trealloc  ) 
 

char* tmalloc  ) 
 


Generated on Thu Sep 18 12:31:25 2008 for Amesos Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1