Counting Bits
Prev: Arithmetic Bounds
Next: Searching Words
Sections
5-1Counting 1-Bits5-2Parity5-3Counting Leading 0’s5-4Counting Trailing 0’s
Problems
-
Code Dube’s algorithm for the
ntzfunction, expanding the multiplication. -
Code the right-justify function used in the
snoobfunction on page 15, for , in three basic RISC instructions. -
Are the parallel prefix and suffix operations, with XOR, invertible? If so, how would you compute the inverse functions?