This is the Xor Table used in x4d by @sticku and what I like to call a "fractal modulo function," giving x4d its fractal properties.
Inspired by @sticku