added doxygen comments
[libfirm] / ir / st / bs.h
1 /* Copyright (c) 2002 by Universität Karlsruhe (TH).  All Rights Reserved */
2
3 /**
4    NAME
5      bs
6    PURPOSE
7      provide bs_t
8    S
9      not quite complete
10    HISTORY
11      liekweg - Feb 27, 2002: Created.
12    CVS:
13      $Id$
14 ***/
15
16 # ifndef _BS_H_
17 # define _BS_H_
18
19 typedef long int bs_t;
20
21 # define bs_set(bs, i) (bs) |= (0x00000001 << i)
22 # define bs_get(bs, i) (bs) &  (0x00000001 << i)
23
24 # define bs_and(bsa, bsb) (bsa) &= (bsb)
25 # define bs_or(bsa, bsb)  (bsa) |= (bsb)
26 # define bs_xor(bsa, bsb) (bsa) ^= (bsb)
27
28 # define bs_zro(bs) (0x00000000 != bs)
29
30 # endif /* ndef _BS_H_ */