From 7de394ee441a8a0a40719a4e0b718c145141cde3 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 29 May 2024 11:07:26 +0200 Subject: [PATCH] fixup! bindings/rust: add MultiScalar trait. --- bindings/rust/src/pippenger-no_std.rs | 2 ++ bindings/rust/src/pippenger.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bindings/rust/src/pippenger-no_std.rs b/bindings/rust/src/pippenger-no_std.rs index b0708866..5f890f0e 100644 --- a/bindings/rust/src/pippenger-no_std.rs +++ b/bindings/rust/src/pippenger-no_std.rs @@ -59,10 +59,12 @@ macro_rules! pippenger_mult_impl { ret } + #[inline] pub fn mult(&self, scalars: &[u8], nbits: usize) -> $point { self.as_slice().mult(scalars, nbits) } + #[inline] pub fn add(&self) -> $point { self.as_slice().add() } diff --git a/bindings/rust/src/pippenger.rs b/bindings/rust/src/pippenger.rs index d135de37..8fc89498 100644 --- a/bindings/rust/src/pippenger.rs +++ b/bindings/rust/src/pippenger.rs @@ -113,10 +113,12 @@ macro_rules! pippenger_mult_impl { ret } + #[inline] pub fn mult(&self, scalars: &[u8], nbits: usize) -> $point { self.as_slice().mult(scalars, nbits) } + #[inline] pub fn add(&self) -> $point { self.as_slice().add() }