Fix log2 (1) in round-downward mode (bug 17042).