]> Repositorios git - scryer-prolog.git/commitdiff
Make it line
authorAdrián Arroyo Calle <[email protected]>
Fri, 20 Aug 2021 10:40:27 +0000 (12:40 +0200)
committerAdrián Arroyo Calle <[email protected]>
Fri, 20 Aug 2021 10:40:27 +0000 (12:40 +0200)
crates/num-rug-adapter/src/lib.rs

index 2f67b80da259f38ffe0e0fc315d9f465e7578ef5..6cb199188f8d2aedf89bb256e3a10208fc3513b1 100644 (file)
@@ -118,6 +118,7 @@ impl Integer {
         Integer(num_integer::Integer::gcd(&self.0, &other.0))
     }
 
+    #[inline]
     pub fn count_ones(&self) -> Option<u32> {
         Some(self.0.to_u32_digits().1.iter().map(|&d| d.count_ones()).sum())
     }