タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

bitに関するizariuo440のブックマーク (4)

  • http://www.masukawa.co.jp/sdk/69.html

    ビット演算テクニック // ビット列を左右反転する(32bit用) int BitMirror32(int n) { n = (n >> 16) | (n << 16); n = (n >> 8) & 0x00ff00ff | (n << 8) & 0xff00ff00; n = (n >> 4) & 0x0f0f0f0f | (n << 4) & 0xf0f0f0f0; n = (n >> 2) & 0x33333333 | (n << 2) & 0xcccccccc; n = (n >> 1) & 0x55555555 | (n << 1) & 0xaaaaaaaa; return n; } // ビット列を左右反転する(16bit用) int BitMirror16(int n) { n = (n >> 8) | (n << 8); n = (n >> 4) & 0x0f0f | (

  • Bit Twiddling Hacks

    By Sean Eron Anderson seander@cs.stanford.edu Individually, the code snippets here are in the public domain (unless otherwise noted) — feel free to use them however you please. The aggregate collection and descriptions are © 1997-2005 Sean Eron Anderson. The code and descriptions are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY and without even the implied warranty of

  • Haya's homepage


    C(C++)    使 
  • ビットを数える・探すアルゴリズム


    2004.05.04 2012.09.01  20039/119/28   PowerPC  Alpha  population count    population count  CPU 使  SPARC CPU (population 
  • 1