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() }