in reply to Re: bitboards in perl
in thread Need data struct that can hold 64 bits of info (was: bitboards in perl)
...reserved for each element in the bit vector.
You were wanting 64 bits, so each is one bit wide. This is 32-bit perl:
or, if you prefer your high order bits printed on the left,$ perl -e 'vec( $foo, 63, 1) = 1; print unpack( "b64",$foo),$/' 0000000000000000000000000000000000000000000000000000000000000001
The bitwise operators work on vec() strings$ perl -e 'vec( $foo, 63, 1) = 1; print scalar reverse(unpack "b64",$f +oo),$/' 1000000000000000000000000000000000000000000000000000000000000000
After Compline,
Zaxo
|
|---|