4 ms·
>The call to `memcpy` is what makes me happy. That's the sort of thing I was hoping to see. >Your `count_bits` already exists as a combination of iterator ada
by Lerc 9y ago
>The call to `memcpy` is what makes me happy.
That's the sort of thing I was hoping to see.
>Your `count_bits` already exists as a combination of iterator adapters (`filter`[2] and `count`[3]):
That's the problem with simple examples. I don't actually want to count bits. It was just the minimum workload I could think of to generate a result from the conversion.
Seeing how the for (a,b) in ai.zip(bi) works well I'll probably be writing a bitmap glyph renderer that is basically if b {*a=color}