ah don't worry. the bitwise operators in pd correspond exactly to the process in that wikipedia article. couldn't guess it would be that easy.