> You might have more luck with lgammaf_r as that avoids use of > _impure_ptr in newlib. thank you very much Keith, that made it. The results for lgammaf_r are the same as those with OpenLibm and Musl: https://members.loria.fr/PZimmermann/papers/accuracy.pdf Best regards, Paul