mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
refactored RingRNS
This commit is contained in:
@@ -19,7 +19,7 @@ pub struct Table<O> {
|
||||
}
|
||||
|
||||
impl Table<u64> {
|
||||
pub fn new(prime: Prime<u64>, nth_root: u64) -> Self {
|
||||
pub fn new(prime: Prime<u64>, nth_root: u64) -> Table<u64> {
|
||||
assert!(
|
||||
nth_root & (nth_root - 1) == 0,
|
||||
"invalid argument: nth_root = {} is not a power of two",
|
||||
|
||||
Reference in New Issue
Block a user