[libcxx-commits] [libcxx] [libcxx] Improve accuracy of complex exp (PR #165254)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 31 04:46:42 PDT 2025


philnik777 wrote:

> > I think an approach similar to #99677 would be better.
> 
> This approach (calling implementations of underlying libm) doesn't fix the initial issue (the accuracy of complex exponential implementation) the current PR addressing. You can see it in #165457 for example for CI jobs with picolibc.

I don't think that's a huge problem. We're really not in the business of implementing high quality math functions (see `<complex>`). That's the kind of stuff we should leave to the libc. We wouldn't implement any other math functions just because some libc does a sub-par job. If your libc doesn't provide a high quality enough implementation for your purposes you can file a bug against that or use a LLVM libc shim instead (once they implement the complex family of functions).

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


More information about the libcxx-commits mailing list