added i32 and i64
@@ -18,6 +18,15 @@ impl Ring for isize {
#[inline(always)] fn zero() -> Self { 0 }
}
+impl Ring for i64 {
+ #[inline(always)] fn is_zero(&self) -> bool { *self == 0 }
+ #[inline(always)] fn zero() -> Self { 0 }
+}
+
+impl Ring for i32 {
+ #[inline(always)] fn is_zero(&self) -> bool { *self == 0 }
+ #[inline(always)] fn zero() -> Self { 0 }
+}
/// The ring defined by a pair of ring elements.
#[derive(Copy, Ord, PartialOrd, Eq, PartialEq, Debug, Clone)]
