@@ -80,25 +80,21 @@ pub trait SpartanExtensionField:
8080 ) ;
8181
8282 /// Return the neg of field element
83- #[ inline]
8483 fn negate ( & self ) -> Self {
8584 self . inner ( ) . neg ( ) . into ( )
8685 }
8786
8887 /// Doubles this field element.
89- #[ inline]
9088 fn double ( & self ) -> Self {
9189 self . add ( * self )
9290 }
9391
9492 /// Squares this element.
95- #[ inline]
9693 fn square ( & self ) -> Self {
9794 self . mul ( * self )
9895 }
9996
10097 /// Negates `self`.
101- #[ inline]
10298 fn neg ( & self ) -> Self {
10399 self . inner ( ) . neg ( ) . into ( )
104100 }
@@ -186,7 +182,6 @@ macro_rules! impl_add_binop_specify_output {
186182 impl <' b> Add <& ' b $rhs> for $lhs {
187183 type Output = $output;
188184
189- #[ inline]
190185 fn add( self , rhs: & ' b $rhs) -> $output {
191186 & self + rhs
192187 }
@@ -195,7 +190,6 @@ macro_rules! impl_add_binop_specify_output {
195190 impl <' a> Add <$rhs> for & ' a $lhs {
196191 type Output = $output;
197192
198- #[ inline]
199193 fn add( self , rhs: $rhs) -> $output {
200194 self + & rhs
201195 }
@@ -204,7 +198,6 @@ macro_rules! impl_add_binop_specify_output {
204198 impl Add <$rhs> for $lhs {
205199 type Output = $output;
206200
207- #[ inline]
208201 fn add( self , rhs: $rhs) -> $output {
209202 & self + & rhs
210203 }
@@ -219,7 +212,6 @@ macro_rules! impl_sub_binop_specify_output {
219212 impl <' b> Sub <& ' b $rhs> for $lhs {
220213 type Output = $output;
221214
222- #[ inline]
223215 fn sub( self , rhs: & ' b $rhs) -> $output {
224216 & self - rhs
225217 }
@@ -228,7 +220,6 @@ macro_rules! impl_sub_binop_specify_output {
228220 impl <' a> Sub <$rhs> for & ' a $lhs {
229221 type Output = $output;
230222
231- #[ inline]
232223 fn sub( self , rhs: $rhs) -> $output {
233224 self - & rhs
234225 }
@@ -237,7 +228,6 @@ macro_rules! impl_sub_binop_specify_output {
237228 impl Sub <$rhs> for $lhs {
238229 type Output = $output;
239230
240- #[ inline]
241231 fn sub( self , rhs: $rhs) -> $output {
242232 & self - & rhs
243233 }
@@ -261,7 +251,6 @@ macro_rules! impl_binops_multiplicative_mixed {
261251 impl <' b> Mul <& ' b $rhs> for $lhs {
262252 type Output = $output;
263253
264- #[ inline]
265254 fn mul( self , rhs: & ' b $rhs) -> $output {
266255 & self * rhs
267256 }
@@ -270,7 +259,6 @@ macro_rules! impl_binops_multiplicative_mixed {
270259 impl <' a> Mul <$rhs> for & ' a $lhs {
271260 type Output = $output;
272261
273- #[ inline]
274262 fn mul( self , rhs: $rhs) -> $output {
275263 self * & rhs
276264 }
@@ -279,7 +267,6 @@ macro_rules! impl_binops_multiplicative_mixed {
279267 impl Mul <$rhs> for $lhs {
280268 type Output = $output;
281269
282- #[ inline]
283270 fn mul( self , rhs: $rhs) -> $output {
284271 & self * & rhs
285272 }
@@ -294,28 +281,24 @@ macro_rules! impl_binops_additive {
294281 crate :: impl_binops_additive_specify_output!( $lhs, $rhs, $lhs) ;
295282
296283 impl SubAssign <$rhs> for $lhs {
297- #[ inline]
298284 fn sub_assign( & mut self , rhs: $rhs) {
299285 * self = & * self - & rhs;
300286 }
301287 }
302288
303289 impl AddAssign <$rhs> for $lhs {
304- #[ inline]
305290 fn add_assign( & mut self , rhs: $rhs) {
306291 * self = & * self + & rhs;
307292 }
308293 }
309294
310295 impl <' b> SubAssign <& ' b $rhs> for $lhs {
311- #[ inline]
312296 fn sub_assign( & mut self , rhs: & ' b $rhs) {
313297 * self = & * self - rhs;
314298 }
315299 }
316300
317301 impl <' b> AddAssign <& ' b $rhs> for $lhs {
318- #[ inline]
319302 fn add_assign( & mut self , rhs: & ' b $rhs) {
320303 * self = & * self + rhs;
321304 }
@@ -330,14 +313,12 @@ macro_rules! impl_binops_multiplicative {
330313 crate :: impl_binops_multiplicative_mixed!( $lhs, $rhs, $lhs) ;
331314
332315 impl MulAssign <$rhs> for $lhs {
333- #[ inline]
334316 fn mul_assign( & mut self , rhs: $rhs) {
335317 * self = & * self * & rhs;
336318 }
337319 }
338320
339321 impl <' b> MulAssign <& ' b $rhs> for $lhs {
340- #[ inline]
341322 fn mul_assign( & mut self , rhs: & ' b $rhs) {
342323 * self = & * self * rhs;
343324 }
0 commit comments