googleったらこんなの出てきた。
ttp://www.emit.jp/prog/prog_b.html

> v2 = (v0 & v1) + (((v0 ^ v1) & 0xfefefefe) >> 1);

なんでこれで平均がでるの?ワケワカラン