Avoiding modulo on power of 2 for dseg pos; using prime + mask