28static int gcd(
int y,
int x)
39#define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y)))
71 cp = (
char *) (mem->
nodes);
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
static void * gv_alloc(size_t size)
void * getfree(Freelist *fl)
void makefree(void *curr, Freelist *fl)
void freeinit(Freelist *fl, int size)
static int gcd(int y, int x)
struct freeblock Freeblock
struct freeblock * blocklist
struct freenode * nextfree