/* Midterm practice #2. Implement the following function according to * the specification. Follow the C-assembly interface conventions of * the lab's compiler and assembler. * * In: v - a long value * Out: the number of bits in v that are 1 * Computes the number of 1 bits in the given long value. For example * count_ones(13) should return 3. */ unsigned short count_ones(long v);