[Mlir-commits] [mlir] Upstream polynomial.ntt and polynomial.intt (PR #90992)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Sat May 4 13:51:53 PDT 2024
================
@@ -104,3 +104,80 @@ LogicalResult MulScalarOp::verify() {
return success();
}
+
+// Test if a value is a primitive nth root of unity modulo cmod
+bool isPrimitiveNthRootOfUnity(const APInt &root, const unsigned n,
+ const APInt &cmod) {
+ // root bitwidth may be 1 less then cmod
----------------
ftynse wrote:
```suggestion
// Root bitwidth may be 1 less then cmod.
```
https://github.com/llvm/llvm-project/pull/90992
More information about the Mlir-commits
mailing list