return i * BITS_PER_LONG + find_first_one(word);
}
+/* For benchmarking, define to do nothing (otherwise, most of the time
+ will be spent converting the output to decimal). */
+#define OUTPUT(n) printf("%lu\n", (n))
+
int
main (int argc, char **argv)
{
return EXIT_FAILURE;
}
- printf("2\n");
+ OUTPUT(2UL);
bit = 0;
{
unsigned long n = 3 + 2 * bit;
- printf("%lu\n", n);
+ OUTPUT(n);
/* First bit to clear corresponds to n^2, which is bit
for (; bit < block_size ;
bit = vector_find_next (vector, bit + 1, size))
- printf("%lu\n", 3 + 2 * bit);
+ OUTPUT(3 + 2 * bit);
for (block = block_size; block < size; block += block_size)
{
for (bit = vector_find_next (vector, block, block + block_size);
bit < block + block_size;
bit = vector_find_next (vector, bit + 1, block + block_size))
- printf("%lu\n", 3 + 2 * bit);
+ OUTPUT(3 + 2 * bit);
}
return EXIT_SUCCESS;