File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / bitset.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (10 years, 7 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

#ifndef _BITSET_H_
#define _BITSET_H_

#include <stddef.h>

typedef struct {
	size_t *bits;
	size_t nbits;
} bitset;

bitset *bitset_init(size_t nbits);
void bitset_reset(bitset *set);
void bitset_free(bitset *set);

void bitset_clear_bit(bitset *set, size_t pos);
void bitset_set_bit(bitset *set, size_t pos);
int bitset_test_bit(bitset *set, size_t pos);

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>