shift network

任意の回転, 乗算マスク, 加算を実現するための手法

  • 任意の並び替え:

    • に対するshift-column : 各slotでどれだけ回転すればよいか
      ex.
      なら
  • mask は 1 otherwize:

  • maskと掛け算した後に非0が先頭に来るようにshift

  • cost: # of rots

  • 1 cmult depth

  • shift network: shift-colの列

    • 個の置換 ( はnetworkのdepthとする)
  • のcostはlevelの和

  • のdepth

    • 定数マスク, rots, adds,
  • のcost

    • rots, adds

参考文献