Lines Matching refs:modnn
75 modnn(int x) in modnn() function
224 s[i] ^= Alpha_to[modnn(tmp + (B0+i-1)*PRIM*j)]; in eras_dec_rs()
233 tmp = modnn(tmp + 2 * KK * (B0+i-1)*PRIM); in eras_dec_rs()
242 lambda[1] = Alpha_to[modnn(PRIM * eras_pos[0])]; in eras_dec_rs()
244 u = modnn(PRIM*eras_pos[i]); in eras_dec_rs()
248 lambda[j] ^= Alpha_to[modnn(u + tmp)]; in eras_dec_rs()
259 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) { in eras_dec_rs()
263 reg[j] = modnn(reg[j] + j); in eras_dec_rs()
300 discr_r ^= Alpha_to[modnn(Index_of[lambda[i]] + s[r - i])]; in eras_dec_rs()
313 t[i+1] = lambda[i+1] ^ Alpha_to[modnn(discr_r + b[i])]; in eras_dec_rs()
324 b[i] = (lambda[i] == 0) ? A0 : modnn(Index_of[lambda[i]] - discr_r + NN); in eras_dec_rs()
347 for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) { in eras_dec_rs()
351 reg[j] = modnn(reg[j] + j); in eras_dec_rs()
384 tmp ^= Alpha_to[modnn(s[i + 1 - j] + lambda[j])]; in eras_dec_rs()
400 num1 ^= Alpha_to[modnn(omega[i] + i * root[j])]; in eras_dec_rs()
402 num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)]; in eras_dec_rs()
408 den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])]; in eras_dec_rs()
420 eras_val[j] = Alpha_to[modnn(Index_of[num1] + Index_of[num2] + NN - Index_of[den])]; in eras_dec_rs()