Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 228 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 228 Bytes

3.28

A.

long fun_b(unsigned long x) {
    long val = 0;
    long i;
    for (i = 64; i != 0; i--) {
        val = (val << 1) | (x & 0x1);
        x = x >> 1;
    }
    return val;
}

B.

C. reverse the bits in x.