Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Functions
memory.c File Reference
#include "geometry.h"
#include "render.h"
#include "mem.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for memory.c:

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)
 

Macro Definition Documentation

#define LCM (   x,
 
)    ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y)))

Definition at line 41 of file memory.c.

Referenced by freeinit().

Typedef Documentation

typedef struct freeblock Freeblock
typedef struct freenode Freenode

Function Documentation

void freeinit ( Freelist fl,
int  size 
)
void* getfree ( Freelist fl)
void makefree ( void *  curr,
Freelist fl 
)

Definition at line 86 of file memory.c.

References freelist::head.

Referenced by deref(), endpoint(), and getfree().