mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
(abitset_and, abitset_and_cmp, abitset_and_or,
abitset_and_or_cmp, abitset_andn, abitset_andn_cmp, abitset_andn_or, abitset_andn_or_cmp, abitset_bytes, abitset_copy, abitset_copy1, abitset_disjoint_p, abitset_empty_p, abitset_equal_p, abitset_init, abitset_list, abitset_list_reverse, abitset_not, abitset_ones, abitset_or, abitset_or_and, abitset_or_and_cmp, abitset_or_cmp, abitset_reset, abitset_set, abitset_size, abitset_small_list, abitset_subset_p, abitset_test, abitset_unused_clear, abitset_xor, abitset_xor_cmp, abitset_zero): Use function prototypes; this removes the need for declaring static functions simply to provide their prototypes.
This commit is contained in:
195
lib/abitset.c
195
lib/abitset.c
@@ -29,44 +29,6 @@
|
|||||||
/* This file implements fixed size bitsets stored as an array
|
/* This file implements fixed size bitsets stored as an array
|
||||||
of words. Any unused bits in the last word must be zero. */
|
of words. Any unused bits in the last word must be zero. */
|
||||||
|
|
||||||
static void abitset_unused_clear PARAMS ((bitset));
|
|
||||||
static void abitset_ones PARAMS ((bitset));
|
|
||||||
static void abitset_zero PARAMS ((bitset));
|
|
||||||
static int abitset_empty_p PARAMS ((bitset));
|
|
||||||
static void abitset_copy1 PARAMS ((bitset, bitset));
|
|
||||||
static void abitset_not PARAMS ((bitset, bitset));
|
|
||||||
static int abitset_equal_p PARAMS ((bitset, bitset));
|
|
||||||
static int abitset_subset_p PARAMS ((bitset, bitset));
|
|
||||||
static int abitset_disjoint_p PARAMS ((bitset, bitset));
|
|
||||||
static void abitset_and PARAMS ((bitset, bitset, bitset));
|
|
||||||
static int abitset_and_cmp PARAMS ((bitset, bitset, bitset));
|
|
||||||
static void abitset_andn PARAMS ((bitset, bitset, bitset));
|
|
||||||
static int abitset_andn_cmp PARAMS ((bitset, bitset, bitset));
|
|
||||||
static void abitset_or PARAMS ((bitset, bitset, bitset));
|
|
||||||
static int abitset_or_cmp PARAMS ((bitset, bitset, bitset));
|
|
||||||
static void abitset_xor PARAMS ((bitset, bitset, bitset));
|
|
||||||
static int abitset_xor_cmp PARAMS ((bitset, bitset, bitset));
|
|
||||||
static void abitset_and_or PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static int abitset_and_or_cmp PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static void abitset_andn_or PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static int abitset_andn_or_cmp PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static void abitset_or_and PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static int abitset_or_and_cmp PARAMS ((bitset, bitset, bitset, bitset));
|
|
||||||
static void abitset_copy PARAMS ((bitset, bitset));
|
|
||||||
|
|
||||||
static bitset_bindex abitset_small_list PARAMS ((bitset, bitset_bindex *,
|
|
||||||
bitset_bindex,
|
|
||||||
bitset_bindex *));
|
|
||||||
|
|
||||||
static void abitset_set PARAMS ((bitset, bitset_bindex));
|
|
||||||
static void abitset_reset PARAMS ((bitset, bitset_bindex));
|
|
||||||
static int abitset_test PARAMS ((bitset, bitset_bindex));
|
|
||||||
static bitset_bindex abitset_size PARAMS ((bitset));
|
|
||||||
static bitset_bindex abitset_list PARAMS ((bitset, bitset_bindex *,
|
|
||||||
bitset_bindex, bitset_bindex *));
|
|
||||||
static bitset_bindex abitset_list_reverse
|
|
||||||
PARAMS ((bitset, bitset_bindex *, bitset_bindex, bitset_bindex *));
|
|
||||||
|
|
||||||
#define ABITSET_N_WORDS(N) (((N) + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
|
#define ABITSET_N_WORDS(N) (((N) + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
|
||||||
#define ABITSET_WORDS(X) ((X)->a.words)
|
#define ABITSET_WORDS(X) ((X)->a.words)
|
||||||
#define ABITSET_N_BITS(X) ((X)->a.n_bits)
|
#define ABITSET_N_BITS(X) ((X)->a.n_bits)
|
||||||
@@ -74,8 +36,7 @@ PARAMS ((bitset, bitset_bindex *, bitset_bindex, bitset_bindex *));
|
|||||||
|
|
||||||
/* Return size in bits of bitset SRC. */
|
/* Return size in bits of bitset SRC. */
|
||||||
static bitset_bindex
|
static bitset_bindex
|
||||||
abitset_size (src)
|
abitset_size (bitset src)
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
return ABITSET_N_BITS (src);
|
return ABITSET_N_BITS (src);
|
||||||
}
|
}
|
||||||
@@ -85,11 +46,8 @@ abitset_size (src)
|
|||||||
*NEXT and store in array LIST. Return with actual number of bits
|
*NEXT and store in array LIST. Return with actual number of bits
|
||||||
found and with *NEXT indicating where search stopped. */
|
found and with *NEXT indicating where search stopped. */
|
||||||
static bitset_bindex
|
static bitset_bindex
|
||||||
abitset_small_list (src, list, num, next)
|
abitset_small_list (bitset src, bitset_bindex *list,
|
||||||
bitset src;
|
bitset_bindex num, bitset_bindex *next)
|
||||||
bitset_bindex *list;
|
|
||||||
bitset_bindex num;
|
|
||||||
bitset_bindex *next;
|
|
||||||
{
|
{
|
||||||
bitset_bindex bitno;
|
bitset_bindex bitno;
|
||||||
bitset_bindex count;
|
bitset_bindex count;
|
||||||
@@ -145,9 +103,7 @@ abitset_small_list (src, list, num, next)
|
|||||||
|
|
||||||
/* Set bit BITNO in bitset DST. */
|
/* Set bit BITNO in bitset DST. */
|
||||||
static void
|
static void
|
||||||
abitset_set (dst, bitno)
|
abitset_set (bitset dst ATTRIBUTE_UNUSED, bitset_bindex bitno ATTRIBUTE_UNUSED)
|
||||||
bitset dst ATTRIBUTE_UNUSED;
|
|
||||||
bitset_bindex bitno ATTRIBUTE_UNUSED;
|
|
||||||
{
|
{
|
||||||
/* This should never occur for abitsets since we should always
|
/* This should never occur for abitsets since we should always
|
||||||
hit the cache. */
|
hit the cache. */
|
||||||
@@ -157,9 +113,8 @@ abitset_set (dst, bitno)
|
|||||||
|
|
||||||
/* Reset bit BITNO in bitset DST. */
|
/* Reset bit BITNO in bitset DST. */
|
||||||
static void
|
static void
|
||||||
abitset_reset (dst, bitno)
|
abitset_reset (bitset dst ATTRIBUTE_UNUSED,
|
||||||
bitset dst ATTRIBUTE_UNUSED;
|
bitset_bindex bitno ATTRIBUTE_UNUSED)
|
||||||
bitset_bindex bitno ATTRIBUTE_UNUSED;
|
|
||||||
{
|
{
|
||||||
/* This should never occur for abitsets since we should always
|
/* This should never occur for abitsets since we should always
|
||||||
hit the cache. */
|
hit the cache. */
|
||||||
@@ -169,9 +124,8 @@ abitset_reset (dst, bitno)
|
|||||||
|
|
||||||
/* Test bit BITNO in bitset SRC. */
|
/* Test bit BITNO in bitset SRC. */
|
||||||
static int
|
static int
|
||||||
abitset_test (src, bitno)
|
abitset_test (bitset src ATTRIBUTE_UNUSED,
|
||||||
bitset src ATTRIBUTE_UNUSED;
|
bitset_bindex bitno ATTRIBUTE_UNUSED)
|
||||||
bitset_bindex bitno ATTRIBUTE_UNUSED;
|
|
||||||
{
|
{
|
||||||
/* This should never occur for abitsets since we should always
|
/* This should never occur for abitsets since we should always
|
||||||
hit the cache. */
|
hit the cache. */
|
||||||
@@ -185,11 +139,8 @@ abitset_test (src, bitno)
|
|||||||
actual number of bits found and with *NEXT indicating where search
|
actual number of bits found and with *NEXT indicating where search
|
||||||
stopped. */
|
stopped. */
|
||||||
static bitset_bindex
|
static bitset_bindex
|
||||||
abitset_list_reverse (src, list, num, next)
|
abitset_list_reverse (bitset src, bitset_bindex *list,
|
||||||
bitset src;
|
bitset_bindex num, bitset_bindex *next)
|
||||||
bitset_bindex *list;
|
|
||||||
bitset_bindex num;
|
|
||||||
bitset_bindex *next;
|
|
||||||
{
|
{
|
||||||
bitset_bindex bitno;
|
bitset_bindex bitno;
|
||||||
bitset_bindex rbitno;
|
bitset_bindex rbitno;
|
||||||
@@ -248,11 +199,8 @@ abitset_list_reverse (src, list, num, next)
|
|||||||
*NEXT and store in array LIST. Return with actual number of bits
|
*NEXT and store in array LIST. Return with actual number of bits
|
||||||
found and with *NEXT indicating where search stopped. */
|
found and with *NEXT indicating where search stopped. */
|
||||||
static bitset_bindex
|
static bitset_bindex
|
||||||
abitset_list (src, list, num, next)
|
abitset_list (bitset src, bitset_bindex *list,
|
||||||
bitset src;
|
bitset_bindex num, bitset_bindex *next)
|
||||||
bitset_bindex *list;
|
|
||||||
bitset_bindex num;
|
|
||||||
bitset_bindex *next;
|
|
||||||
{
|
{
|
||||||
bitset_bindex bitno;
|
bitset_bindex bitno;
|
||||||
bitset_bindex count;
|
bitset_bindex count;
|
||||||
@@ -352,8 +300,7 @@ abitset_list (src, list, num, next)
|
|||||||
|
|
||||||
/* Ensure that any unused bits within the last word are clear. */
|
/* Ensure that any unused bits within the last word are clear. */
|
||||||
static inline void
|
static inline void
|
||||||
abitset_unused_clear (dst)
|
abitset_unused_clear (bitset dst)
|
||||||
bitset dst;
|
|
||||||
{
|
{
|
||||||
unsigned int last_bit;
|
unsigned int last_bit;
|
||||||
|
|
||||||
@@ -365,8 +312,7 @@ abitset_unused_clear (dst)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_ones (dst)
|
abitset_ones (bitset dst)
|
||||||
bitset dst;
|
|
||||||
{
|
{
|
||||||
bitset_word *dstp = ABITSET_WORDS (dst);
|
bitset_word *dstp = ABITSET_WORDS (dst);
|
||||||
size_t bytes;
|
size_t bytes;
|
||||||
@@ -379,8 +325,7 @@ abitset_ones (dst)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_zero (dst)
|
abitset_zero (bitset dst)
|
||||||
bitset dst;
|
|
||||||
{
|
{
|
||||||
bitset_word *dstp = ABITSET_WORDS (dst);
|
bitset_word *dstp = ABITSET_WORDS (dst);
|
||||||
size_t bytes;
|
size_t bytes;
|
||||||
@@ -392,8 +337,7 @@ abitset_zero (dst)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_empty_p (dst)
|
abitset_empty_p (bitset dst)
|
||||||
bitset dst;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *dstp = ABITSET_WORDS (dst);
|
bitset_word *dstp = ABITSET_WORDS (dst);
|
||||||
@@ -407,9 +351,7 @@ abitset_empty_p (dst)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_copy1 (dst, src)
|
abitset_copy1 (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
bitset_word *srcp = ABITSET_WORDS (src);
|
bitset_word *srcp = ABITSET_WORDS (src);
|
||||||
bitset_word *dstp = ABITSET_WORDS (dst);
|
bitset_word *dstp = ABITSET_WORDS (dst);
|
||||||
@@ -422,9 +364,7 @@ abitset_copy1 (dst, src)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_not (dst, src)
|
abitset_not (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *srcp = ABITSET_WORDS (src);
|
bitset_word *srcp = ABITSET_WORDS (src);
|
||||||
@@ -438,9 +378,7 @@ abitset_not (dst, src)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_equal_p (dst, src)
|
abitset_equal_p (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *srcp = ABITSET_WORDS (src);
|
bitset_word *srcp = ABITSET_WORDS (src);
|
||||||
@@ -455,9 +393,7 @@ abitset_equal_p (dst, src)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_subset_p (dst, src)
|
abitset_subset_p (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *srcp = ABITSET_WORDS (src);
|
bitset_word *srcp = ABITSET_WORDS (src);
|
||||||
@@ -472,9 +408,7 @@ abitset_subset_p (dst, src)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_disjoint_p (dst, src)
|
abitset_disjoint_p (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *srcp = ABITSET_WORDS (src);
|
bitset_word *srcp = ABITSET_WORDS (src);
|
||||||
@@ -490,10 +424,7 @@ abitset_disjoint_p (dst, src)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_and (dst, src1, src2)
|
abitset_and (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -507,10 +438,7 @@ abitset_and (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_and_cmp (dst, src1, src2)
|
abitset_and_cmp (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -534,10 +462,7 @@ abitset_and_cmp (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_andn (dst, src1, src2)
|
abitset_andn (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -551,10 +476,7 @@ abitset_andn (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_andn_cmp (dst, src1, src2)
|
abitset_andn_cmp (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -578,10 +500,7 @@ abitset_andn_cmp (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_or (dst, src1, src2)
|
abitset_or (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -595,10 +514,7 @@ abitset_or (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_or_cmp (dst, src1, src2)
|
abitset_or_cmp (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -622,10 +538,7 @@ abitset_or_cmp (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_xor (dst, src1, src2)
|
abitset_xor (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -639,10 +552,7 @@ abitset_xor (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_xor_cmp (dst, src1, src2)
|
abitset_xor_cmp (bitset dst, bitset src1, bitset src2)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -666,11 +576,7 @@ abitset_xor_cmp (dst, src1, src2)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_and_or (dst, src1, src2, src3)
|
abitset_and_or (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -685,11 +591,7 @@ abitset_and_or (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_and_or_cmp (dst, src1, src2, src3)
|
abitset_and_or_cmp (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -714,11 +616,7 @@ abitset_and_or_cmp (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_andn_or (dst, src1, src2, src3)
|
abitset_andn_or (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -733,11 +631,7 @@ abitset_andn_or (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_andn_or_cmp (dst, src1, src2, src3)
|
abitset_andn_or_cmp (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -762,11 +656,7 @@ abitset_andn_or_cmp (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_or_and (dst, src1, src2, src3)
|
abitset_or_and (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
bitset_word *src1p = ABITSET_WORDS (src1);
|
bitset_word *src1p = ABITSET_WORDS (src1);
|
||||||
@@ -781,11 +671,7 @@ abitset_or_and (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
abitset_or_and_cmp (dst, src1, src2, src3)
|
abitset_or_and_cmp (bitset dst, bitset src1, bitset src2, bitset src3)
|
||||||
bitset dst;
|
|
||||||
bitset src1;
|
|
||||||
bitset src2;
|
|
||||||
bitset src3;
|
|
||||||
{
|
{
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
@@ -810,9 +696,7 @@ abitset_or_and_cmp (dst, src1, src2, src3)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
abitset_copy (dst, src)
|
abitset_copy (bitset dst, bitset src)
|
||||||
bitset dst;
|
|
||||||
bitset src;
|
|
||||||
{
|
{
|
||||||
if (BITSET_COMPATIBLE_ (dst, src))
|
if (BITSET_COMPATIBLE_ (dst, src))
|
||||||
abitset_copy1 (dst, src);
|
abitset_copy1 (dst, src);
|
||||||
@@ -896,8 +780,7 @@ struct bitset_vtable abitset_vtable = {
|
|||||||
|
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
abitset_bytes (n_bits)
|
abitset_bytes (bitset_bindex n_bits)
|
||||||
bitset_bindex n_bits;
|
|
||||||
{
|
{
|
||||||
bitset_windex size;
|
bitset_windex size;
|
||||||
size_t bytes;
|
size_t bytes;
|
||||||
@@ -921,9 +804,7 @@ abitset_bytes (n_bits)
|
|||||||
|
|
||||||
|
|
||||||
bitset
|
bitset
|
||||||
abitset_init (bset, n_bits)
|
abitset_init (bitset bset, bitset_bindex n_bits)
|
||||||
bitset bset;
|
|
||||||
bitset_bindex n_bits;
|
|
||||||
{
|
{
|
||||||
bitset_windex size;
|
bitset_windex size;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user