@@ -400,7 +400,7 @@ pub fn polynomial_wrapping_monic_monomial_div_assign<Scalar, OutputCont>(
400400 OutputCont : ContainerMut < Element = Scalar > ,
401401{
402402 let full_cycles_count = monomial_degree. 0 / output. as_ref ( ) . container_len ( ) ;
403- if full_cycles_count % 2 != 0 {
403+ if ! full_cycles_count. is_multiple_of ( 2 ) {
404404 output
405405 . as_mut ( )
406406 . iter_mut ( )
@@ -425,7 +425,7 @@ pub fn polynomial_wrapping_monic_monomial_div_assign_custom_mod<Scalar, OutputCo
425425 OutputCont : ContainerMut < Element = Scalar > ,
426426{
427427 let full_cycles_count = monomial_degree. 0 / output. as_ref ( ) . container_len ( ) ;
428- if full_cycles_count % 2 != 0 {
428+ if ! full_cycles_count. is_multiple_of ( 2 ) {
429429 output
430430 . as_mut ( )
431431 . iter_mut ( )
@@ -467,7 +467,7 @@ pub fn polynomial_wrapping_monic_monomial_mul_assign<Scalar, OutputCont>(
467467 OutputCont : ContainerMut < Element = Scalar > ,
468468{
469469 let full_cycles_count = monomial_degree. 0 / output. as_ref ( ) . container_len ( ) ;
470- if full_cycles_count % 2 != 0 {
470+ if ! full_cycles_count. is_multiple_of ( 2 ) {
471471 output
472472 . as_mut ( )
473473 . iter_mut ( )
@@ -491,7 +491,7 @@ pub fn polynomial_wrapping_monic_monomial_mul_assign_custom_mod<Scalar, OutputCo
491491 OutputCont : ContainerMut < Element = Scalar > ,
492492{
493493 let full_cycles_count = monomial_degree. 0 / output. as_ref ( ) . container_len ( ) ;
494- if full_cycles_count % 2 != 0 {
494+ if ! full_cycles_count. is_multiple_of ( 2 ) {
495495 output
496496 . as_mut ( )
497497 . iter_mut ( )
@@ -561,7 +561,7 @@ pub fn polynomial_wrapping_monic_monomial_div<Scalar, OutputCont, InputCont>(
561561 let remaining_degree = monomial_degree. 0 % polynomial_size;
562562
563563 let full_cycles_count = monomial_degree. 0 / polynomial_size;
564- if full_cycles_count % 2 == 0 {
564+ if full_cycles_count. is_multiple_of ( 2 ) {
565565 copy_without_neg (
566566 & mut output[ ..polynomial_size - remaining_degree] ,
567567 & input[ remaining_degree..] ,
@@ -625,7 +625,7 @@ pub fn polynomial_wrapping_monic_monomial_mul<Scalar, OutputCont, InputCont>(
625625 let remaining_degree = monomial_degree. 0 % polynomial_size;
626626
627627 let full_cycles_count = monomial_degree. 0 / polynomial_size;
628- if full_cycles_count % 2 == 0 {
628+ if full_cycles_count. is_multiple_of ( 2 ) {
629629 copy_with_neg (
630630 & mut output[ ..remaining_degree] ,
631631 & input[ polynomial_size - remaining_degree..] ,
@@ -701,7 +701,7 @@ pub(crate) fn polynomial_wrapping_monic_monomial_mul_and_subtract<Scalar, Output
701701 let remaining_degree = monomial_degree. 0 % polynomial_size;
702702
703703 let full_cycles_count = monomial_degree. 0 / polynomial_size;
704- if full_cycles_count % 2 == 0 {
704+ if full_cycles_count. is_multiple_of ( 2 ) {
705705 copy_with_neg_and_subtract (
706706 & mut output[ ..remaining_degree] ,
707707 & input[ polynomial_size - remaining_degree..] ,
0 commit comments