Lines Matching defs:modnn
70 modnn(int x)
219 s[i] ^= Alpha_to[modnn(tmp + (B0+i-1)*PRIM*j)];
228 tmp = modnn(tmp + 2 * KK * (B0+i-1)*PRIM);
237 lambda[1] = Alpha_to[modnn(PRIM * eras_pos[0])];
239 u = modnn(PRIM*eras_pos[i]);
243 lambda[j] ^= Alpha_to[modnn(u + tmp)];
254 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) {
258 reg[j] = modnn(reg[j] + j);
295 discr_r ^= Alpha_to[modnn(Index_of[lambda[i]] + s[r - i])];
308 t[i+1] = lambda[i+1] ^ Alpha_to[modnn(discr_r + b[i])];
319 b[i] = (lambda[i] == 0) ? A0 : modnn(Index_of[lambda[i]] - discr_r + NN);
342 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) {
346 reg[j] = modnn(reg[j] + j);
379 tmp ^= Alpha_to[modnn(s[i + 1 - j] + lambda[j])];
395 num1 ^= Alpha_to[modnn(omega[i] + i * root[j])];
397 num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)];
403 den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
415 eras_val[j] = Alpha_to[modnn(Index_of[num1] + Index_of[num2] + NN - Index_of[den])];