OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [include/] [opcode/] [cgen-bitset.h] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Header file the type CGEN_BITSET.
2
 
3
Copyright 2002, 2005 Free Software Foundation, Inc.
4
 
5
This file is part of GDB, the GNU debugger, and the GNU Binutils.
6
 
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.
11
 
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.
16
 
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.  */
20
#ifndef CGEN_BITSET_H
21
#define CGEN_BITSET_H
22
 
23
#ifdef __cplusplus
24
extern "C" {
25
#endif
26
 
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.
31
 
32
   For example, the bit representing member number 6 is (set->bits[0] & 0x02).
33
*/
34
typedef struct cgen_bitset
35
{
36
  unsigned length;
37
  char *bits;
38
} CGEN_BITSET;
39
 
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 *));
50
 
51
#ifdef __cplusplus
52
} // extern "C"
53
#endif
54
 
55
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.