Lines Matching defs:symsize
2653 * @param $symsize (int) symbol size, bits
2661 protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
2663 if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize)
2669 $rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
2694 * @param $symsize (int) symbol size, bits
2702 protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
2706 if (($symsize < 0) OR ($symsize > 8)) {
2709 if (($fcr < 0) OR ($fcr >= (1<<$symsize))) {
2712 if (($prim <= 0) OR ($prim >= (1<<$symsize))) {
2715 if (($nroots < 0) OR ($nroots >= (1<<$symsize))) {
2718 if (($pad < 0) OR ($pad >= ((1<<$symsize) -1 - $nroots))) {
2722 $rs['mm'] = $symsize;
2723 $rs['nn'] = (1 << $symsize) - 1;
2738 if ($sr & (1 << $symsize)) {