]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/mark_bits.hpp
io.streams.256color: faster by caching styles
[factor.git] / vm / mark_bits.hpp
index d1307933fe9b33bf5e7e641a1d978b54cb1ddd06..efd66b339c34f0fc5811cc233f015ffdcb7f25fc 100644 (file)
@@ -118,10 +118,9 @@ struct mark_bits {
         cell clear_bit = rightmost_clear_bit(mask);
         return line_block(index * mark_bits_granularity + bit_index +
                           clear_bit);
-      } else {
-        // No unmarked blocks on this page. Keep looking
-        bit_index = 0;
       }
+      // No unmarked blocks on this page. Keep looking
+      bit_index = 0;
     }
 
     // No unmarked blocks were found
@@ -138,10 +137,9 @@ struct mark_bits {
         // Found an marked block on this page. Stop, it's hammer time
         cell set_bit = rightmost_set_bit(mask);
         return line_block(index * mark_bits_granularity + bit_index + set_bit);
-      } else {
-        // No marked blocks on this page. Keep looking
-        bit_index = 0;
       }
+      // No marked blocks on this page. Keep looking
+      bit_index = 0;
     }
 
     // No marked blocks were found