3 ms·
> Whereas GCC’s __builtin_popcount() only works on unsigned ints Rust’s count_ones() works on signed, too! C's weak typing should handle signed
by __s 9y ago
> Whereas GCC’s __builtin_popcount() only works on unsigned ints Rust’s count_ones() works on signed, too!
C's weak typing should handle signed
- tmccrmck 9y agoIt would cast the signed integer to unsigned.