freenode/#clasp - IRC Chatlog
Search
14:06:53
Bike
sub byte arrays are kind of difficult because the gcbitarray constructor works with words, not elements... and that kind of ties into how all the gcarray constructors are... but that's deep stuff to change
14:21:45
Bike
using clz instead of checking each bit individually, for (position 1 simple-bit-vector), is like two hundred times faster, so that's kinda cool
14:40:39
Bike
If a bit vector happens to be a multiple of 64/whatever long, it might be easier to reverse, too. apparently some architectures have bit reverse instructions
14:48:47
beach
Interesting. I hadn't considered the reversal thing. In the past I would have done a 256-element table to apply for each byte, but nowadays I am not so sure.
15:29:25
Bike
The usual on x86 seems to be a loop of shifts. Shifting left puts the former MSB in the carry flag, and then you can use "add x, x" to both shift the result left and put the carry flag in the LSB.
18:51:47
Bike
my psuedo copy constructor compiles without complaint but at runtime it makes a bit vector full of junk data, instead of a copy