Technically, O(log(n) <= 7 ? 1 : log(n)) is still O(log(n)) ... :)