[Mingw-w64-public] [PATCH 1/2] crt: Use headers: Use __SIZEOF_LONG_DOUBLE__ instead of arch checks in some math functions.

2025-04-04 Thread Jacek Caban
--- This includes functions needed for ARM64EC support that are not covered by Martin's WIP long-double-64 branch. mingw-w64-crt/math/cephes_mconf.h | 4 ++-- mingw-w64-crt/math/fmal.c | 2 +- mingw-w64-crt/math/fpclassifyl.c | 6 +++--- mingw-w64-crt/math/frexpl.c | 2 +- mingw-w6

[Mingw-w64-public] [PATCH] gendef: Remove trailing space in generated def file

2025-04-04 Thread Pali Rohár
--- mingw-w64-tools/gendef/src/gendef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c index 1f34edea2f07..b56777db4cd5 100644 --- a/mingw-w64-tools/gendef/src/gendef.c +++ b/mingw-w64-tools/gendef/src/

[Mingw-w64-public] [PATCH v2] crt: Use F_LD64 for long double functions.

2025-04-04 Thread Jacek Caban
--- v2: Preserved comments and updated on top of 49c2f4e2bda45454ae9bbd66ca3fe0fbb9bcd60d. mingw-w64-crt/def-include/crt-aliases.def.in | 30 ++- .../api-ms-win-crt-convert-l1-1-0.def.in | 8 +- .../api-ms-win-crt-math-l1-1-0.def.in | 148 +++--- .../api-ms-win-crt-priva

[Mingw-w64-public] [PATCH 1/3] headers: Use __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__ instead of arch checks

2025-04-04 Thread Jacek Caban
From: Martin Storsjö --- mingw-w64-headers/crt/math.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h index 85ef06773..dc1599ed5 100644 --- a/mingw-w64-headers/crt/math.h +++ b/mingw-w64-header

Re: [Mingw-w64-public] [PATCH 3/3] crt: Use __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__ instead of arch checks

2025-04-04 Thread Martin Storsjö
On Fri, 4 Apr 2025, Jacek Caban wrote: From: Martin Storsjö --- mingw-w64-crt/gdtoa/strtodnrp.c | 3 +-- mingw-w64-crt/gdtoa/strtopx.c | 23 --- mingw-w64-crt/math/coshl.c | 2 +- mingw-w64-crt/math/erfl.c | 2 +- mingw-w64-crt/math/fabsl.c | 6 +++--- ming

Re: [Mingw-w64-public] [PATCH 2/3] headers: Use aarch64 logbl function variant for ARM64EC.

2025-04-04 Thread Martin Storsjö
On Fri, 4 Apr 2025, Martin Storsjö wrote: On Fri, 4 Apr 2025, Jacek Caban wrote: From: Billy Laws Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h index

Re: [Mingw-w64-public] [PATCH 2/3] headers: Use aarch64 logbl function variant for ARM64EC.

2025-04-04 Thread Martin Storsjö
On Fri, 4 Apr 2025, Jacek Caban wrote: From: Billy Laws Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h index dc1599ed5..58636984e 100644 --- a/mingw-w64-

Re: [Mingw-w64-public] [PATCH 1/3] headers: Use __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__ instead of arch checks

2025-04-04 Thread Martin Storsjö
On Fri, 4 Apr 2025, Jacek Caban wrote: From: Martin Storsjö --- mingw-w64-headers/crt/math.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) LGTM. (This is admittedly my own patch, but by you posting/proposing it for merge, I presume that serves as a second pers

Re: [Mingw-w64-public] [PATCH 1/3] crt: Move trunc implementation to C file.

2025-04-04 Thread Jacek Caban
On 1.04.2025 22:16, Jeremy Drake via Mingw-w64-public wrote: On Tue, 1 Apr 2025, Jacek Caban wrote: diff --git a/mingw-w64-crt/include/internal.h b/mingw-w64-crt/include/internal.h index 84d52c991..b30ae0e5f 100644 --- a/mingw-w64-crt/include/internal.h +++ b/mingw-w64-crt/include/internal.h @@

Re: [Mingw-w64-public] [PATCH 1/3] crt: Move trunc implementation to C file.

2025-04-04 Thread Jeremy Drake via Mingw-w64-public
On Tue, 1 Apr 2025, Jacek Caban wrote: > diff --git a/mingw-w64-crt/include/internal.h > b/mingw-w64-crt/include/internal.h > index 84d52c991..b30ae0e5f 100644 > --- a/mingw-w64-crt/include/internal.h > +++ b/mingw-w64-crt/include/internal.h > @@ -287,6 +287,14 @@ static inline unsigned int __min

Re: [Mingw-w64-public] [PATCH] crt, headers: Use headers to redirect __ms_v*scanf functions to v*scanf functions.

2025-04-04 Thread Jacek Caban
On 26.03.2025 14:12, Martin Storsjö wrote: On Sat, 22 Mar 2025, Jacek Caban wrote: --- mingw-w64-crt/Makefile.am    | 11 ++- mingw-w64-crt/def-include/crt-aliases.def.in |  8 - mingw-w64-crt/lib-common/msvcr120_app.def.in |  1 - mingw-w64-crt/lib32/msvcr120.def.in   

[Mingw-w64-public] [PATCH 3/3] crt: Use __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__ instead of arch checks

2025-04-04 Thread Jacek Caban
From: Martin Storsjö --- mingw-w64-crt/gdtoa/strtodnrp.c | 3 +-- mingw-w64-crt/gdtoa/strtopx.c | 23 --- mingw-w64-crt/math/coshl.c | 2 +- mingw-w64-crt/math/erfl.c | 2 +- mingw-w64-crt/math/fabsl.c | 6 +++--- mingw-w64-crt/math/fp_constsl.c | 2 +-

[Mingw-w64-public] [PATCH 2/3] headers: Use aarch64 logbl function variant for ARM64EC.

2025-04-04 Thread Jacek Caban
From: Billy Laws Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h index dc1599ed5..58636984e 100644 --- a/mingw-w64-headers/crt/math.h +++ b/mingw-w64-heade

Re: [Mingw-w64-public] [PATCH 1/2] crt: Respect automake silent rules

2025-04-04 Thread Martin Storsjö
On Thu, 3 Apr 2025, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: On 2.04.2025 21:47, Martin Storsjö wrote: If configuring mingw-w64-crt with the autoconf/automake config option --enable-silent-rules, the default automake rules will print e.g. " CC misc/lib64_libmsvcrt_e

Re: [Mingw-w64-public] [PATCH 1/2] crt: Use headers: Use __SIZEOF_LONG_DOUBLE__ instead of arch checks in some math functions.

2025-04-04 Thread Jacek Caban
On 4.04.2025 15:37, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: --- This includes functions needed for ARM64EC support that are not covered by Martin's WIP long-double-64 branch. mingw-w64-crt/math/cephes_mconf.h | 4 ++-- mingw-w64-crt/math/fmal.c | 2 +- mingw-w64-crt/

Re: [Mingw-w64-public] [PATCH 1/2] crt: Use headers: Use __SIZEOF_LONG_DOUBLE__ instead of arch checks in some math functions.

2025-04-04 Thread Martin Storsjö
On Thu, 3 Apr 2025, Jacek Caban wrote: --- This includes functions needed for ARM64EC support that are not covered by Martin's WIP long-double-64 branch. mingw-w64-crt/math/cephes_mconf.h | 4 ++-- mingw-w64-crt/math/fmal.c | 2 +- mingw-w64-crt/math/fpclassifyl.c | 6 +++--- mingw-w64-cr

Re: [Mingw-w64-public] [PATCH 2/2] crt: Use aarch64 assembly variants for ARM64EC math functions.

2025-04-04 Thread Martin Storsjö
On Fri, 4 Apr 2025, Jacek Caban wrote: On 4.04.2025 13:42, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: From: Billy Laws --- mingw-w64-crt/math/fma.c  |  2 +- mingw-w64-crt/math/fmaf.c |  2 +- mingw-w64-crt/math/llrint.c   |  2 +- mingw-w64-crt/math/llrintf.c  |  2 +

Re: [Mingw-w64-public] [PATCH 2/2] crt: Use aarch64 assembly variants for ARM64EC math functions.

2025-04-04 Thread Jacek Caban
On 4.04.2025 13:42, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: From: Billy Laws --- mingw-w64-crt/math/fma.c  |  2 +- mingw-w64-crt/math/fmaf.c |  2 +- mingw-w64-crt/math/llrint.c   |  2 +- mingw-w64-crt/math/llrintf.c  |  2 +- mingw-w64-crt/math/llrintl.c  |  3 ++-

Re: [Mingw-w64-public] [PATCH 1/2] crt: Use headers: Use __SIZEOF_LONG_DOUBLE__ instead of arch checks in some math functions.

2025-04-04 Thread Jacek Caban
On 4.04.2025 13:39, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: --- This includes functions needed for ARM64EC support that are not covered by Martin's WIP long-double-64 branch. Feel free to send patches from that WIP branch that you find use for here - I haven't really dec

Re: [Mingw-w64-public] [PATCH v2 3/3] crt: Use naked functions for ARM64 assembly functions.

2025-04-04 Thread Jacek Caban
On 4.04.2025 13:35, Martin Storsjö wrote: On Thu, 3 Apr 2025, Jacek Caban wrote: On 3.04.2025 14:32, Martin Storsjö wrote: On Wed, 2 Apr 2025, Jacek Caban wrote: On ARM64EC, function declarations have additional nuances: - Function names are mangled by prefixing them with "#" - An unmangled

Re: [Mingw-w64-public] [PATCH 2/2] crt: Use aarch64 assembly variants for ARM64EC math functions.

2025-04-04 Thread Martin Storsjö
On Thu, 3 Apr 2025, Jacek Caban wrote: From: Billy Laws --- mingw-w64-crt/math/fma.c | 2 +- mingw-w64-crt/math/fmaf.c | 2 +- mingw-w64-crt/math/llrint.c | 2 +- mingw-w64-crt/math/llrintf.c | 2 +- mingw-w64-crt/math/llrintl.c | 3 ++- mingw-w64-crt/math/lrint.c| 14 +++-

Re: [Mingw-w64-public] [PATCH 1/2] crt: Use headers: Use __SIZEOF_LONG_DOUBLE__ instead of arch checks in some math functions.

2025-04-04 Thread Martin Storsjö
On Thu, 3 Apr 2025, Jacek Caban wrote: --- This includes functions needed for ARM64EC support that are not covered by Martin's WIP long-double-64 branch. Feel free to send patches from that WIP branch that you find use for here - I haven't really decided about trying to upstream that whole br

Re: [Mingw-w64-public] [PATCH v2 3/3] crt: Use naked functions for ARM64 assembly functions.

2025-04-04 Thread Martin Storsjö
On Thu, 3 Apr 2025, Jacek Caban wrote: On 3.04.2025 14:32, Martin Storsjö wrote: On Wed, 2 Apr 2025, Jacek Caban wrote: On ARM64EC, function declarations have additional nuances: - Function names are mangled by prefixing them with "#" - An unmangled symbol is defined as a weak anti-dependency