I have two unequal integers which contain only one nonzero bit. How to test which integer has a more significant bit?
Example:
test(0b1000_0000, 0b0100_0000); // Should return true
test(0b0010_0000_0000, 0b0100_0000_0000); // Should return false
What is the most efficient implementation of test
?