On the unpacking issue, rather than put x into a (C type) union, it might 
be faster with something like so:
function unpack(x)
       x4 = x & 65535
       x3 = ( x >> 16) & 65535 
       x2 = (x >> 32) & 65535
       x1 = (x >> 48) & 65535 
       return x1, x2, x3, x4
       end


but  I'd still like simpler explanations of how to write a few lines of C & 
render the result callable (maybe without having to make a whole library of 
it?).

Reply via email to