[libcxx-commits] [libcxx] [libc++] Implement std::gcd using the binary version (PR #77747)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 12 03:15:49 PST 2024


AdvenamTacet wrote:

Also, while for random values performance gain is consistent, it's worth to point out that it's possible to create benchmarks in which naive GCD is clearly faster. https://quick-bench.com/q/1y8T00mwK3t9EL__IqTKLgmTHwI

We may want to consider running naive GCD if one value is very small.

https://github.com/llvm/llvm-project/pull/77747


More information about the libcxx-commits mailing list