They used -O2, which produces the straight forward loop. [0]
But with -O3, for NUMBER > 51, is uses some other odd loop. [1]
Seems to be O(n) no matter what though.
[0]: https://godbolt.org/z/czcaYf [1]: https://godbolt.org/z/sP194Y
But with -O3, for NUMBER > 51, is uses some other odd loop. [1]
Seems to be O(n) no matter what though.
[0]: https://godbolt.org/z/czcaYf [1]: https://godbolt.org/z/sP194Y