/* Let particular systems override the size of a chunk. */
#ifndef OBSTACK_CHUNK_SIZE
-#define OBSTACK_CHUNK_SIZE 0
+# define OBSTACK_CHUNK_SIZE 0
#endif
/* Let them override the alloc and free routines too. */
#ifndef OBSTACK_CHUNK_ALLOC
-#define OBSTACK_CHUNK_ALLOC xmalloc
+# define OBSTACK_CHUNK_ALLOC xmalloc
#endif
#ifndef OBSTACK_CHUNK_FREE
-#define OBSTACK_CHUNK_FREE free
+# define OBSTACK_CHUNK_FREE free
#endif
#if ! defined __GNUC__ || __GNUC__ < 2
-#define __alignof__(type) 0
+# define __alignof__(type) 0
#endif
obstack_specify_allocation (&tbitset_obstack, OBSTACK_CHUNK_SIZE,
}
if (!tbitset_elt_zero_p (delt))
- {
- tbitset_elt_add (dst, delt, j);
- }
+ tbitset_elt_add (dst, delt, j);
else
- {
- tbitset_elt_free (delt);
- }
+ tbitset_elt_free (delt);
}
/* If we have elements of DST left over, free them all. */
tbitset_zero (dst);
return changed;
}
- return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_AND);
+ else
+ return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_AND);
}
tbitset_andn_cmp (bitset dst, bitset src1, bitset src2)
{
if (EBITSET_ZERO_P (src2))
- {
- return tbitset_copy_cmp (dst, src1);
- }
+ return tbitset_copy_cmp (dst, src1);
else if (EBITSET_ZERO_P (src1))
{
tbitset_weed (dst);
tbitset_zero (dst);
return changed;
}
- return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_ANDN);
+ else
+ return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_ANDN);
}
tbitset_or_cmp (bitset dst, bitset src1, bitset src2)
{
if (EBITSET_ZERO_P (src2))
- {
- return tbitset_copy_cmp (dst, src1);
- }
+ return tbitset_copy_cmp (dst, src1);
else if (EBITSET_ZERO_P (src1))
- {
- return tbitset_copy_cmp (dst, src2);
- }
- return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_OR);
+ return tbitset_copy_cmp (dst, src2);
+ else
+ return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_OR);
}
tbitset_xor_cmp (bitset dst, bitset src1, bitset src2)
{
if (EBITSET_ZERO_P (src2))
- {
- return tbitset_copy_cmp (dst, src1);
- }
+ return tbitset_copy_cmp (dst, src1);
else if (EBITSET_ZERO_P (src1))
- {
- return tbitset_copy_cmp (dst, src2);
- }
- return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_XOR);
+ return tbitset_copy_cmp (dst, src2);
+ else
+ return tbitset_op3_cmp (dst, src1, src2, BITSET_OP_XOR);
}
static bool
vbitset_and_cmp (bitset dst, bitset src1, bitset src2)
{
- bool changed = false;
vbitset_resize (dst, max (BITSET_SIZE_ (src1), BITSET_SIZE_ (src2)));
bitset_windex dsize = VBITSET_SIZE (dst);
bitset_word *src1p = VBITSET_WORDS (src1);
bitset_word *src2p = VBITSET_WORDS (src2);
+ bool changed = false;
unsigned i;
for (i = 0; i < min (ssize1, ssize2); i++, dstp++)
{
static bool
vbitset_andn_cmp (bitset dst, bitset src1, bitset src2)
{
- bool changed = false;
vbitset_resize (dst, max (BITSET_SIZE_ (src1), BITSET_SIZE_ (src2)));
bitset_windex dsize = VBITSET_SIZE (dst);
bitset_word *src1p = VBITSET_WORDS (src1);
bitset_word *src2p = VBITSET_WORDS (src2);
+ bool changed = false;
unsigned i;
for (i = 0; i < min (ssize1, ssize2); i++, dstp++)
{
static bool
vbitset_or_cmp (bitset dst, bitset src1, bitset src2)
{
- bool changed = false;
-
vbitset_resize (dst, max (BITSET_SIZE_ (src1), BITSET_SIZE_ (src2)));
bitset_windex dsize = VBITSET_SIZE (dst);
bitset_word *src1p = VBITSET_WORDS (src1);
bitset_word *src2p = VBITSET_WORDS (src2);
+ bool changed = false;
unsigned i;
for (i = 0; i < min (ssize1, ssize2); i++, dstp++)
{
static bool
vbitset_xor_cmp (bitset dst, bitset src1, bitset src2)
{
- bool changed = false;
vbitset_resize (dst, max (BITSET_SIZE_ (src1), BITSET_SIZE_ (src2)));
bitset_windex dsize = VBITSET_SIZE (dst);
bitset_word *src1p = VBITSET_WORDS (src1);
bitset_word *src2p = VBITSET_WORDS (src2);
+ bool changed = false;
unsigned i;
for (i = 0; i < min (ssize1, ssize2); i++, dstp++)
{
bitset_word *dstp = VBITSET_WORDS (dst);
bitset_windex size = VBITSET_SIZE (dst);
- unsigned i;
bool changed = false;
+ unsigned i;
for (i = 0; i < size; i++, dstp++)
{
bitset_word tmp = (*src1p++ | *src2p++) & *src3p++;