What does the '%' operator mean? You know how x += 1 means x = x + 1, well x |= 1 means x = x | 1. Of course | means bitwise OR.