bitmap.h File Reference

#include <string.h>

Go to the source code of this file.

Classes

struct  _Map

Defines

#define MAPZERO(m)   (memset((m)->map, 0, (m)->size))
#define MAPSET(m, n)   ((m)->map[(n) >> 3] |= 1 << ((n) & 7))
#define MAPCLR(m, n)   ((m)->map[(n) >> 3] &= ~(1 << ((n) & 7)))
#define MAPTST(m, n)   ((m)->map[(n) >> 3] & (1 << ((n) & 7)))

Typedefs

typedef struct _Map Map

Functions

static void map_empty (Map *m)
void map_init (Map *m, int n)
void map_init_clone (Map *t, Map *s)
void map_grow (Map *m, int n)
void map_free (Map *m)


Define Documentation

#define MAPZERO (  )     (memset((m)->map, 0, (m)->size))

#define MAPSET ( m,
 )     ((m)->map[(n) >> 3] |= 1 << ((n) & 7))

#define MAPCLR ( m,
 )     ((m)->map[(n) >> 3] &= ~(1 << ((n) & 7)))

#define MAPTST ( m,
 )     ((m)->map[(n) >> 3] & (1 << ((n) & 7)))


Typedef Documentation

typedef struct _Map Map


Function Documentation

static void map_empty ( Map m  )  [inline, static]

Definition at line 29 of file bitmap.h.

References MAPZERO.

Referenced by addchoicerules(), and pool_addfileprovides_search().

void map_init ( Map m,
int  n 
)

void map_init_clone ( Map t,
Map s 
)

Definition at line 37 of file bitmap.c.

References _Map::map, sat_malloc(), and _Map::size.

Referenced by transaction_calculate(), and transaction_init_clone().

void map_grow ( Map m,
int  n 
)

Definition at line 51 of file bitmap.c.

References _Map::map, sat_realloc(), and _Map::size.

Referenced by solver_addduprules(), solver_calculate_noobsmap(), and solver_solve().

void map_free ( Map m  ) 


doxygen