Lines Matching refs:modnn
74 modnn(int x)
223 s[i] ^= Alpha_to[modnn(tmp + (B0+i-1)*PRIM*j)];
232 tmp = modnn(tmp + 2 * KK * (B0+i-1)*PRIM);
241 lambda[1] = Alpha_to[modnn(PRIM * eras_pos[0])];
243 u = modnn(PRIM*eras_pos[i]);
247 lambda[j] ^= Alpha_to[modnn(u + tmp)];
258 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) {
262 reg[j] = modnn(reg[j] + j);
299 discr_r ^= Alpha_to[modnn(Index_of[lambda[i]] + s[r - i])];
312 t[i+1] = lambda[i+1] ^ Alpha_to[modnn(discr_r + b[i])];
323 b[i] = (lambda[i] == 0) ? A0 : modnn(Index_of[lambda[i]] - discr_r + NN);
346 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) {
350 reg[j] = modnn(reg[j] + j);
383 tmp ^= Alpha_to[modnn(s[i + 1 - j] + lambda[j])];
399 num1 ^= Alpha_to[modnn(omega[i] + i * root[j])];
401 num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)];
407 den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
419 eras_val[j] = Alpha_to[modnn(Index_of[num1] + Index_of[num2] + NN - Index_of[den])];