Implementing boundary conditions [in cellular automata]
In the bitwise representation discussed on page 865, 0's outside of a width n can be implemented by applying BitAnd[a, 2n-1] at each step. Cyclic boundary conditions can be implemented efficiently in assembler on computers that support cyclic shift instructions.