2007-12-20 ロジック(小片) programming X mod (2^n) は、 X and (2^n - 1) と書き換えられる? 剰余計算の代わりにビット計算でいけるから、下の方が早いかな。