func insert(x, m uint64) uint64 { var ( holes = ^m << 1 moves [6]uint64 ) for i := range &moves { odd := holes odd ^= odd << 1 odd ^= odd << 2 odd ^= odd << 4 odd ^= odd << 8 odd ^= odd << 16 odd ^= odd << 32 moves[i] = odd holes &^= odd } shift := uint(16) for i := 5; i >= 0; i-- { move := moves[i] move >>= shift move &= x x ^= move x |= move << shift shift >>= 1 } return x }
To receive a hint, submit unfixed code.