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

Aleksei Nurmukhametov via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 31 06:45:14 PDT 2025


nurmukhametov 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).

I understand this point, but it is not so currently. At the moment, `libcxx` has its own implementations.


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


More information about the libcxx-commits mailing list