Skip to main content
2 of 2
replaced http://cs.stackexchange.com/ with https://cs.stackexchange.com/

This discussion of bit operations is one sort of answer. Comparison for greater than is another thing that falls into this "we assume away (by definition) that it's O(n)" list of operations.