func subtract(from, what, mask uint64) uint64 { var ( masked1 = from | ^mask masked2 = what & mask diff = masked1 - masked2 changed = from ^ diff modify = changed & mask ) return from ^ modify }
To receive a hint, submit unfixed code.