From 75baefabebe858e938797b437245c751af100192 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Sun, 12 Mar 2017 23:18:38 -0700 Subject: [PATCH] Stub remaining radix_51 functions with unimplemented!() --- src/field.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/field.rs b/src/field.rs index e0fbbe3..cb729b8 100644 --- a/src/field.rs +++ b/src/field.rs @@ -869,6 +869,10 @@ impl FieldElement { FieldElement::reduce(&[h0, h1, h2, h3, h4, h5, h6, h7, h8, h9]) } + #[cfg(feature="radix_51")] + pub fn multiply(&self, _rhs: &FieldElement) -> FieldElement { + unimplemented!(); + } #[cfg(feature="radix_25_5")] fn square_inner(&self) -> [i64;10] { @@ -910,6 +914,10 @@ impl FieldElement { h } + #[cfg(feature="radix_51")] + fn square_inner(&self) -> [u128;5] { + unimplemented!(); + } /// Calculates h = f*f. Can overlap h with f. /// @@ -926,6 +934,10 @@ impl FieldElement { pub fn square(&self) -> FieldElement { FieldElement::reduce(&self.square_inner()) } + #[cfg(feature="radix_51")] + pub fn square(&self) -> FieldElement { + unimplemented!(); + } /// Square this field element and multiply the result by 2. /// @@ -951,6 +963,10 @@ impl FieldElement { } FieldElement::reduce(&coeffs) } + #[cfg(feature="radix_51")] + pub fn square2(&self) -> FieldElement { + unimplemented!(); + } #[inline] #[allow(dead_code)]