1 /* Header file the type CGEN_BITSET.
3 Copyright 2002, 2005 Free Software Foundation, Inc.
5 This file is part of GDB, the GNU debugger, and the GNU Binutils.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
27 /* A bitmask represented as a string.
28 Each member of the set is represented as a bit
29 in the string. Bytes are indexed from left to right in the string and
30 bits from most significant to least within each byte.
32 For example, the bit representing member number 6 is (set->bits[0] & 0x02).
34 typedef struct cgen_bitset
40 extern CGEN_BITSET
*cgen_bitset_create
PARAMS ((unsigned));
41 extern void cgen_bitset_init
PARAMS ((CGEN_BITSET
*, unsigned));
42 extern void cgen_bitset_clear
PARAMS ((CGEN_BITSET
*));
43 extern void cgen_bitset_add
PARAMS ((CGEN_BITSET
*, unsigned));
44 extern void cgen_bitset_set
PARAMS ((CGEN_BITSET
*, unsigned));
45 extern int cgen_bitset_compare
PARAMS ((CGEN_BITSET
*, CGEN_BITSET
*));
46 extern void cgen_bitset_union
PARAMS ((CGEN_BITSET
*, CGEN_BITSET
*, CGEN_BITSET
*));
47 extern int cgen_bitset_intersect_p
PARAMS ((CGEN_BITSET
*, CGEN_BITSET
*));
48 extern int cgen_bitset_contains
PARAMS ((CGEN_BITSET
*, unsigned));
49 extern CGEN_BITSET
*cgen_bitset_copy
PARAMS ((CGEN_BITSET
*));
This page took 0.030428 seconds and 4 git commands to generate.