From: Adrián Arroyo Calle Date: Fri, 20 Aug 2021 10:40:27 +0000 (+0200) Subject: Make it line X-Git-Tag: v0.9.0~46^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=9bcc56e337794b7a64ab995cb79a0c30177d1d35;p=scryer-prolog.git Make it line --- diff --git a/crates/num-rug-adapter/src/lib.rs b/crates/num-rug-adapter/src/lib.rs index 2f67b80d..6cb19918 100644 --- a/crates/num-rug-adapter/src/lib.rs +++ b/crates/num-rug-adapter/src/lib.rs @@ -118,6 +118,7 @@ impl Integer { Integer(num_integer::Integer::gcd(&self.0, &other.0)) } + #[inline] pub fn count_ones(&self) -> Option { Some(self.0.to_u32_digits().1.iter().map(|&d| d.count_ones()).sum()) }