The following code does work how I need it to, but it\'s ugly, excessive or a number of other things. I\'ve looked at formulas and attempted to write a few solutions, but I
((two&2)*(1+((one^two)&1))+(one&2)*(2-((one^two)&1)))/2