Feature-gate batch inversion and compression on alloc

This commit is contained in:
Henry de Valence 2018-01-19 17:08:12 -08:00
parent b20ccbd685
commit 1f821d34a5
2 changed files with 2 additions and 0 deletions

View file

@ -184,6 +184,7 @@ impl FieldElement {
///
/// This function is most efficient when the batch size (slice
/// length) is a power of 2.
#[cfg(any(feature = "alloc", feature = "std"))]
pub fn batch_invert(inputs: &mut [FieldElement]) {
// First, compute the product of all inputs using a product
// tree:

View file

@ -667,6 +667,7 @@ impl RistrettoPoint {
}
/// Double-and-compress a batch of points.
#[cfg(any(feature = "alloc", feature = "std"))]
pub fn double_and_compress_batch<'a, I>(points: I) -> Vec<CompressedRistretto>
where I: IntoIterator<Item = &'a RistrettoPoint>
{