Sunday, November 2, 2014

Average of 2 unsigned numbers

int x ;
int y ;
int z = (x & y )+ ((x^y)>>1);