https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115147
--- Comment #1 from Jan Schultke <janschultke at googlemail dot com> --- I did some quick low-quality benchmarks. It doesn't seem to make any kind of difference for libc++ and clang: https://quick-bench.com/q/aq1mZ1sKTWHzdmZf5D7BO2yJ1Yo (or for libstdc++ and clang) For GCC and libstdc++, ldexp turns out to be substantially slower than exp2, which is very surprising: https://quick-bench.com/q/iqGdSMmsUIYNo8O8jC7Py8yOg84