Modular inverse computation.

This commit is contained in:
2018-10-26 21:28:48 -07:00
parent 89e2dfc6ef
commit 45f7df00d8
17 changed files with 36115 additions and 36063 deletions

View File

@@ -18,6 +18,10 @@ macro_rules! signed_impls {
pub fn abs(&self) -> $sname {
$sname{ negative: false, value: self.value.clone() }
}
pub fn is_negative(&self) -> bool {
self.negative
}
}
impl From<$sname> for $name {