Coda Distributed File System
|
#include "coda_assert.h"
#include <stdlib.h>
#include "coda_string.h"
#include <lwp/lock.h>
#include <util.h>
#include "bitvect.h"
Classes | |
struct | Bitv_s |
Macros | |
#define | BPW (8 * sizeof(unsigned long)) |
#define | nwords(len) ((((len) + BPW - 1) & (~(BPW - 1))) / BPW) |
#define | ALLOCMASK (~((unsigned long)0)) |
#define | HIGHBIT 1 << (BPW - 1) |
#define | HIGHCBIT 128 |
Functions | |
Bitv | Bitv_new (int len) |
void | Bitv_free (Bitv *b) |
int | Bitv_length (Bitv b) |
int | Bitv_get (Bitv b, int n) |
int | Bitv_put (Bitv b, int n, int bit) |
void | Bitv_set (Bitv b, int n) |
void | Bitv_clear (Bitv b, int n) |
int | Bitv_getfree (Bitv b) |
int | Bitv_count (Bitv b) |
void | Bitv_print (Bitv b, FILE *fd) |
#define ALLOCMASK (~((unsigned long)0)) |
#define BPW (8 * sizeof(unsigned long)) |
#define HIGHCBIT 128 |
void Bitv_clear | ( | Bitv | b, |
int | n | ||
) |
int Bitv_count | ( | Bitv | b | ) |
void Bitv_free | ( | Bitv * | b | ) |
int Bitv_get | ( | Bitv | b, |
int | n | ||
) |
int Bitv_getfree | ( | Bitv | b | ) |
int Bitv_length | ( | Bitv | b | ) |
Bitv Bitv_new | ( | int | len | ) |
void Bitv_print | ( | Bitv | b, |
FILE * | fd | ||
) |
int Bitv_put | ( | Bitv | b, |
int | n, | ||
int | bit | ||
) |
void Bitv_set | ( | Bitv | b, |
int | n | ||
) |