Geoff Pike
unread,Aug 12, 2014, 2:30:08 PM8/12/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cityhash...@googlegroups.com
Yes, it should be possible. For example, you could apply a fast
lossless compression first. A general purpose lossless compression
algorithm might not be fast enough, but since you know that you want
2-bits of value per 8-bit input, you might be able to compress 4 words
to 1 with, say,
w0 = <first word>; w1 = <second word>; etc.
c0 = f(w0, f(w1, f(w2, f(w3, 0))));
where f(a, b) is a + 5*b. Warning: this is untested!
Geoff