Use binary operators rather than "Python modulo" in decoding block positions