>>515
>>512であってんじゃん?
if()の中身だけ使えばいいわけだ。
((a>>x)&1)

でも俺なら迷わずビットフィールド使う。
http://www.pro.or.jp/~fuji/mybooks/cdiag/cdiag.6.4.html