Module bitwise::word
[−]
[src]
Algorithms for single words (u8...u64).
Reexports
pub use morton::decode_2d as morton_decode_2d; |
pub use morton::decode_3d as morton_decode_3d; |
pub use morton::encode_2d as morton_encode_2d; |
pub use morton::encode_3d as morton_encode_3d; |
Modules
gcd |
Greatest Common Divisor algorithms that use bit manipulation. |
morton |
Encoding/decoding of Morton Z-curve indices. |
Traits
Functions
align_down |
Align |
align_up |
Align |
ceil_pow2 |
Round |
clear_bit |
Clear the |
clear_bits_geq |
Clears all bits of |
clear_bits_leq |
Clears all bits of |
clear_least_significant_one |
Clear least significant set bit of |
clear_trailing_ones |
Clear the trailing bits set of |
copy_bit |
Copys the |
count_leading_ones |
Count the number of leading ones in the binary representation of |
count_leading_zeros |
Counts the number of leading zeros in the binary representation of |
count_ones |
Number of ones in the binary representation of |
count_trailing_ones |
Number of trailing ones in the binary representation of |
count_trailing_zeros |
Count the number of trailing zeros in the binary representation of |
count_zeros |
Number of zeros in the binary representation of |
extract_bits |
Extract bits [ |
flip_bit |
Flip the |
flip_bits_geq |
Flips all bits of |
flip_bits_leq |
Flips all bits of |
floor_pow2 |
Round |
from_be |
Convert integer from big endian to the target's endianness. |
from_le |
Convert integer from little endian to the target's endianness. |
hamming_distance |
Hamming distance between the binary representation of |
inner_perfect_shuffle |
Inner Perfect Shuffle of |
inner_perfect_unshuffle |
Inner Perfect Unshuffle of |
is_aligned |
Is |
is_even |
Is |
is_odd |
Is |
is_pow2 |
Is |
isolate_least_significant_one |
Returns mask with the least significant set bit of |
isolate_least_significant_zero |
Returns mask with the least significant zero bit of |
mask_trailing_ones |
Returns mask with the trailing 1's of |
mask_trailing_ones_and_least_significant_zero |
Returns mask with all trailing 1's of |
mask_trailing_zeros |
Returns mask with the trailing 0's of |
mask_trailing_zeros_and_least_significant_one |
Returns mask with all of the trailing 0's of |
outer_perfect_shuffle |
Outer Perfect Shuffle of |
outer_perfect_unshuffle |
Outer Perfect Unshuffle of |
parallel_bits_deposit |
Parallel bits deposit of |
parallel_bits_extract |
Parallel bits extract of |
parity |
Number of set bits in |
pow |
Raises |
reverse_bit_groups |
Reverses groups of bits within each subword of |
reverse_bit_nibbles |
Reverses the nibbles of |
reverse_bit_pairs |
Reverses the pairs of bits of |
reverse_bits |
Reverses the bits of |
reverse_byte_groups |
Reverses groups of bytes within each subword of |
reverse_bytes |
Reverses the bytes of |
rotate_left |
Shifts the bits of |
rotate_right |
Shifts the bits of |
set_bit |
Sets the |
set_bits_geq |
Sets all bits of |
set_bits_leq |
Sets all bits of |
set_least_significant_zero |
Set least significant 0 bit of |
set_trailing_zeros |
Set the trailing 0's of |
shift_arithmetic_left |
Shift the bits of |
shift_arithmetic_right |
Shift the bits of |
shift_logical_left |
Shift the bits to the left by a specified amount, |
shift_logical_right |
Shift the bits of |
swap_bytes |
Reverses the order of the bytes of |
test_bit |
Test the |
to_be |
Convert |
to_le |
Convert |