/*-GNU-GPL-BEGIN-* nepim - network pipemeter Copyright (C) 2005 Everton da Silva Marques nepim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. nepim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with nepim; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *-GNU-GPL-END-*/ /* $Id: bit.h,v 1.1 2005/08/18 21:59:11 evertonm Exp $ */ #ifndef NEPIM_BIT_H #define NEPIM_BIT_H #include "int.h" typedef struct nepim_bit_t nepim_bit_t; struct nepim_bit_t { uint32_t *words; int word_size; /* words */ }; void nepim_bit_init(nepim_bit_t *set, uint32_t bit_size); void nepim_bit_del(nepim_bit_t *set); int nepim_bit_isset(nepim_bit_t *set, uint32_t bit); void nepim_bit_set(nepim_bit_t *set, uint32_t bit); void nepim_bit_clear(nepim_bit_t *set, uint32_t bit); #endif /* NEPIM_BIT_H */