Re: [Mingw-w64-public] [PATCH 3/5] crt: arm: Use import libs for math functions

2019-04-10 Thread Jacek Caban
On 4/10/19 11:18 PM, Martin Storsjö wrote: On Wed, 10 Apr 2019, Jacek Caban wrote: On 4/10/19 3:11 PM, Martin Storsjö wrote: This avoids unnecessary precision loss e.g. in the log2 function, which previously was wrapped as log(x) / constant, which didn't return exact integers for powers of

Re: [Mingw-w64-public] [PATCH 3/5] crt: arm: Use import libs for math functions

2019-04-10 Thread Martin Storsjö
On Wed, 10 Apr 2019, Jacek Caban wrote: On 4/10/19 3:11 PM, Martin Storsjö wrote: This avoids unnecessary precision loss e.g. in the log2 function, which previously was wrapped as log(x) / constant, which didn't return exact integers for powers of two. Some math functions are kept for msvcrt,

[Mingw-w64-public] [PATCH 3/5] crt: arm: Use import libs for math functions

2019-04-10 Thread Martin Storsjö
This avoids unnecessary precision loss e.g. in the log2 function, which previously was wrapped as log(x) / constant, which didn't return exact integers for powers of two. Some math functions are kept for msvcrt, while they are superfluous for ucrt where all those functions exist already (in C99