danlehmann / arbitrary-int

A modern and lightweight implementation of arbitrary integers for Rust
MIT License
32 stars 13 forks source link

Add reverse_bits, count_ones, count_zeros, trailing/leading-ones/zero… #23

Closed danlehmann closed 1 year ago

danlehmann commented 1 year ago

…s, rotate_left, rotate_right

Rotates are implemented through shifting and masking; everything else can forward to the underlying type, so the others should be pretty efficient