| 113 | |
| 114 | template<typename B> |
| 115 | B |
| 116 | Encoder_polar_PAC<B>::conv1bitEnc(B cbit) |
| 117 | { |
| 118 | |
| 119 | B u = cbit && (B)conv_reg[0]; |
| 120 | for (size_t i = 1; i < conv_reg.size(); i++) |
| 121 | { |
| 122 | if (conv_reg[i] == 1) |
| 123 | { |
| 124 | u = u ^ curState[i - 1]; |
| 125 | } |
| 126 | } |
| 127 | for (int i = curState.size() - 1; i >= 1; i--) |
| 128 | curState[i] = curState[i - 1]; |
| 129 | curState[0] = cbit; |
| 130 | |
| 131 | return u; |
| 132 | } |
| 133 | |
| 134 | template<typename B> |
| 135 | void |
nothing calls this directly
no outgoing calls
no test coverage detected