forked from noporpoise/BitArray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbar.h
More file actions
41 lines (32 loc) · 1.19 KB
/
bar.h
File metadata and controls
41 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// shorten the names of some of the bit_array functions to be more
// like the str* function names. The prefix "bar" is used to represent
// bit_array and is analogous to "str".
#define bar BIT_ARRAY
#define barcreate bit_array_create
#define bardestroy bit_array_free
#define baralloc bit_array_alloc
#define barfree bit_array_dealloc
#define barlen bit_array_length
#define barset bit_array_set_bit
#define barclr bit_array_clear_bit
#define barget bit_array_get_bit
#define barflip bit_array_toggle_bit
#define barmake bit_array_assign_bit
#define barncpy bit_array_copy
#define barcpy bit_array_copy_all
#define bardup bit_array_clone
#define barshr bit_array_shift_right
#define barshl bit_array_shift_left
#define bareshl bit_array_shift_left_extend
#define barpopc bit_array_num_bits_set
#define barfns bit_array_find_next_set_bit
#define barffs bit_array_find_first_set_bit
#define barfnz bit_array_find_next_clear_bit
#define barffz bit_array_find_first_clear_bit
#define barcmp bit_array_cmp
#define barand bit_array_and
#define baror bit_array_or
#define barxor bit_array_xor
#define barnot bit_array_not
#define barzero bit_array_clear_all
#define barfill bit_array_set_all