• Awesome, yea, that's what I was trying to get to :)

    I've got this code now which should do the un-interleaving (per row)

    t = (x ^ (x >> 1)) & 0x2222;  x = x ^ t ^ (t << 1); 
    t = (x ^ (x >> 2)) & 0x0C0C;  x = x ^ t ^ (t << 2); 
    t = (x ^ (x >> 4)) & 0x00F0;  x = x ^ t ^ (t << 4); 
    

    Matt

About