Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-09 Thread Szabolcs Nagy
On 03/05/2019 20:25, Jonathan Wakely wrote: > On 03/05/19 14:34 +, Szabolcs Nagy wrote: >> there is still an execution failure, but that's not >> related to copysign: proj(i*inf) returns i*inf instead of inf >> i haven't figured out why: >> >> /work/b/src/gcc/libstdc++-v3/testsuite/26_numerics/

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Jonathan Wakely
On 03/05/19 14:34 +, Szabolcs Nagy wrote: On 03/05/2019 13:08, Jonathan Wakely wrote: On 03/05/19 11:21 +, Szabolcs Nagy wrote: On 03/05/2019 12:16, Jonathan Wakely wrote: Hmm, which file in the source tree does the include/cmath symlink in the build tree point to? /work/b/build-aarc

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Szabolcs Nagy
On 03/05/2019 13:08, Jonathan Wakely wrote: > On 03/05/19 11:21 +, Szabolcs Nagy wrote: >> On 03/05/2019 12:16, Jonathan Wakely wrote: >>> Hmm, which file in the source tree does the include/cmath symlink in >>> the build tree point to? >> >> /work/b/build-aarch64-none-elf/obj/gcc2/aarch64-none

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Jonathan Wakely
On 03/05/19 11:21 +, Szabolcs Nagy wrote: On 03/05/2019 12:16, Jonathan Wakely wrote: On 03/05/19 09:23 +, Szabolcs Nagy wrote: On 01/05/2019 01:09, Jonathan Wakely wrote: The current generic implementation of __complex_proj used when cproj is not available calculates the wrong project

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Szabolcs Nagy
On 03/05/2019 12:16, Jonathan Wakely wrote: > On 03/05/19 09:23 +, Szabolcs Nagy wrote: >> On 01/05/2019 01:09, Jonathan Wakely wrote: >>> The current generic implementation of __complex_proj used when cproj is >>> not available calculates the wrong projection, giving a different result >>> tha

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Jonathan Wakely
On 03/05/19 09:23 +, Szabolcs Nagy wrote: On 01/05/2019 01:09, Jonathan Wakely wrote: The current generic implementation of __complex_proj used when cproj is not available calculates the wrong projection, giving a different result than given by C99's cproj. When C99 cproj is not available b

Re: [PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-05-03 Thread Szabolcs Nagy
On 01/05/2019 01:09, Jonathan Wakely wrote: > The current generic implementation of __complex_proj used when cproj is > not available calculates the wrong projection, giving a different result > than given by C99's cproj. > > When C99 cproj is not available but isinf and copysign are, use those to

[PATCH] PR libstdc++/61761 fix std::proj for targets without C99 cproj

2019-04-30 Thread Jonathan Wakely
The current generic implementation of __complex_proj used when cproj is not available calculates the wrong projection, giving a different result than given by C99's cproj. When C99 cproj is not available but isinf and copysign are, use those to give correct results for float, double and long doub