tlds
Transactional Operations for Linked Data Structures
|
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bitmap.h"
#include "tm.h"
#include "types.h"
#include "utility.h"
Macros | |
#define | NUM_BIT_PER_BYTE (8L) |
#define | NUM_BIT_PER_WORD (sizeof(ulong_t) * NUM_BIT_PER_BYTE) |
Functions | |
bitmap_t * | bitmap_alloc (long numBit) |
bitmap_t * | Pbitmap_alloc (long numBit) |
void | bitmap_free (bitmap_t *bitmapPtr) |
void | Pbitmap_free (bitmap_t *bitmapPtr) |
bool_t | bitmap_set (bitmap_t *bitmapPtr, long i) |
bool_t | bitmap_clear (bitmap_t *bitmapPtr, long i) |
void | bitmap_clearAll (bitmap_t *bitmapPtr) |
bool_t | bitmap_isClear (bitmap_t *bitmapPtr, long i) |
bool_t | bitmap_isSet (bitmap_t *bitmapPtr, long i) |
long | bitmap_findClear (bitmap_t *bitmapPtr, long startIndex) |
long | bitmap_findSet (bitmap_t *bitmapPtr, long startIndex) |
long | bitmap_getNumClear (bitmap_t *bitmapPtr) |
long | bitmap_getNumSet (bitmap_t *bitmapPtr) |
void | bitmap_copy (bitmap_t *dstPtr, bitmap_t *srcPtr) |
void | bitmap_toggleAll (bitmap_t *bitmapPtr) |
#define NUM_BIT_PER_BYTE (8L) |
#define NUM_BIT_PER_WORD (sizeof(ulong_t) * NUM_BIT_PER_BYTE) |
bitmap_t* bitmap_alloc | ( | long | numBit | ) |
void bitmap_clearAll | ( | bitmap_t * | bitmapPtr | ) |
long bitmap_findClear | ( | bitmap_t * | bitmapPtr, |
long | startIndex | ||
) |
long bitmap_findSet | ( | bitmap_t * | bitmapPtr, |
long | startIndex | ||
) |
void bitmap_free | ( | bitmap_t * | bitmapPtr | ) |
long bitmap_getNumClear | ( | bitmap_t * | bitmapPtr | ) |
long bitmap_getNumSet | ( | bitmap_t * | bitmapPtr | ) |
void bitmap_toggleAll | ( | bitmap_t * | bitmapPtr | ) |
bitmap_t* Pbitmap_alloc | ( | long | numBit | ) |
void Pbitmap_free | ( | bitmap_t * | bitmapPtr | ) |