...a better way to implement ceil...
This replaces your shrink function from the definition of $dlen on.my $dlen = int((7 + length($_[0]) * 7)/8); substr($_[0], $dlen) = ''; vec ($_[0], $dbit++, 1) = 0 while ($dbit < $dlen * 8); }
In reply to Re^4: Efficient 7bit compression
by Roy Johnson
in thread Efficient 7bit compression
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |