Lines Matching defs:cmod
27 APInt cmod(1 + bitWidth, 1);
28 cmod = cmod << bitWidth;
113 /// Test if a value is a primitive nth root of unity modulo cmod.
115 const APInt &cmod) {
119 std::max(root.getActiveBits() * 2, cmod.getActiveBits() * 2);
121 APInt cmodExt = APInt(cmod).zextOrTrunc(requiredBitWidth);
122 assert(r.ule(cmodExt) && "root must be less than cmod");
172 APInt cmod = ring.getCoefficientModulus().getValue();
173 if (!isPrimitiveNthRootOfUnity(rootValue, rootDegree, cmod)) {
177 << "of unity mod " << cmod.getZExtValue()