GrayCode and bytes operation First posted: 09/13/201709/15/2017Filed under: Be A Better ProgrammerComment 1.num2gray (i>>1)^I 2.find rightest 1 x&(x-1) 3.find rightest 0 x&(x+1)