Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Data Structures | |
struct | freenode |
struct | freeblock |
Macros | |
#define | LCM(x, y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) |
Typedefs | |
typedef struct freenode | Freenode |
typedef struct freeblock | Freeblock |
Functions | |
void | freeinit (Freelist *fl, int size) |
void * | getfree (Freelist *fl) |
void | makefree (void *curr, Freelist *fl) |
#define LCM | ( | x, | |
y | |||
) | ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) |
Definition at line 41 of file memory.c.
Referenced by freeinit().
Definition at line 43 of file memory.c.
References freelist::blocklist, freelist::head, LCM, freeblock::next, freeblock::nodes, freelist::nodesize, and NULL.
Referenced by edgeinit(), ELcleanup(), ELinitialize(), infoinit(), and siteinit().
void* getfree | ( | Freelist * | fl | ) |
Definition at line 62 of file memory.c.
References freelist::blocklist, gmalloc(), GNEW, freelist::head, makefree(), freeblock::next, freenode::nextfree, freeblock::nodes, freelist::nodesize, NULL, and sqrt_nsites.
Referenced by addVertex(), getsite(), gvbisect(), and HEcreate().
void makefree | ( | void * | curr, |
Freelist * | fl | ||
) |
Definition at line 86 of file memory.c.
References freelist::head.
Referenced by deref(), endpoint(), and getfree().