const char *p = bl.c_str();
int bits = bl.length() << 3;
while (start < bits) {
- int byte = start >> 3;
- unsigned char mask = 1 << (start & 7);
- if ((p[byte] & mask) == 0) {
+ int which_byte = start / 8;
+ int which_bit = start % 8;
+ unsigned char byte_mask = 1 << which_bit;
+ if ((p[which_byte] & byte_mask) == 0) {
return start;
}
++start;
const char *p = bl.c_str();
int bits = bl.length() << 3;
while (start < bits) {
- int byte = start >> 3;
- unsigned char mask = 1 << (start & 7);
- if (p[byte] & mask) {
+ int which_byte = start / 8;
+ int which_bit = start % 8;
+ unsigned char byte_mask = 1 << which_bit;
+ if (p[which_byte] & byte_mask) {
return start;
}
++start;