Stub remaining radix_51 functions with unimplemented!()

This commit is contained in:
Henry de Valence 2017-03-12 23:18:38 -07:00
parent b515e43dfd
commit 75baefabeb

View file

@ -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)]