Commit b6c7fa16 authored by Michael Beck's avatar Michael Beck
Browse files

C99 feature removed, fixed indentation.

[r27305]
parent 2d843318
......@@ -451,8 +451,6 @@ static inline void rbitset_xor(unsigned *dst, const unsigned *src, unsigned size
static inline void rbitset_set_range(unsigned *bitset, unsigned from,
unsigned to, bool val)
{
assert(from < to);
/*
* A small example (for cleaning bits in the same unit).
* from = 7
......@@ -473,6 +471,8 @@ static inline void rbitset_set_range(unsigned *bitset, unsigned from,
unsigned to_pos = to / BITS_PER_ELEM;
unsigned to_unit_mask = (1 << to_bit) - 1;
assert(from < to);
/* do we want to set the bits in the range? */
if (val) {
if (from_pos == to_pos) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment