You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Copyright 2013 Bliksem Labs. See the LICENSE file at the top-level directory of this distribution and at https://github.com/bliksemlabs/rrrr/. */
/* bitset.h */
#ifndef _BITSET_H
#define _BITSET_H
#include <stdint.h>
#include <stdbool.h>
#define BITSET_NONE UINT32_MAX
typedef struct bitset_s BitSet;
struct bitset_s {
uint32_t capacity;
uint64_t *chunks;
uint32_t nchunks;
};
BitSet *bitset_new(uint32_t capacity);
void bitset_reset(BitSet *self); // rename to bitset_clear?