2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 #ifndef SATSOLVER_BITMAP_H
14 #define SATSOLVER_BITMAP_H
21 #define MAPZERO(m) (memset((m)->map, 0, (m)->size))
22 #define MAPSET(m, n) ((m)->map[(n) >> 3] |= 1 << ((n) & 7)) // Set Bit
23 #define MAPCLR(m, n) ((m)->map[(n) >> 3] &= ~(1 << ((n) & 7))) // Reset Bit
24 #define MAPTST(m, n) ((m)->map[(n) >> 3] & (1 << ((n) & 7))) // Test Bit
26 extern void map_init(Map *m, int n);
27 extern void map_free(Map *m);
28 extern void map_clone(Map *t, Map *s);
30 #endif /* SATSOLVER_BITMAP_H */