func swap(in uint64, lo, hi, ct int) uint64 { var ( bit = uint64(1) << ct mask = (bit - 1) << lo gap = hi - lo xor1 = in>>gap ^ in xor2 = xor1 & mask xor3 = xor2 << gap ) return in ^ xor3 }
To receive a hint, submit unfixed code.