[Mingw-w64-public] [PATCH] headers: Add new APIs and symbols in hyperv headers

2022-06-03 Thread Biswapriyo Nath
From 2e215f993a0bc63b43b5d947a81ce8b22ab2ef1d Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 4 Jun 2022 12:16:14 +0530 Subject: [PATCH] headers: Add new APIs and symbols in hyperv headers Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/computecore.h | 2 ++ mingw

Re: [Mingw-w64-public] [PATCH] Add missing winsock2 prototypes and definitions

2022-06-03 Thread Rafael Lopez
Thanks Liu, i have modified the patch and attached new one. On 3/6/22 17:21, LIU Hao wrote: 在 2022-06-03 12:23, Rafael Lopez 写道: Hi, I have attached a patch for missing prototypes snf definitions for winsock2.h First submission, feedback welcome :) Thank you for the patch. However there

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-03 Thread sisyphus
On Fri, Jun 3, 2022 at 2:16 PM LIU Hao wrote: > ... > I still consider it a bad idea to declare functions with the same names as > standard ones. Why not > rename it to `my_inet_ntop` for example? it would be much less error-prone. > > Yes - there's wisdom in what you say. However, "acting wisel

Re: [Mingw-w64-public] lrint on x64

2022-06-03 Thread Ozkan Sezer
>> For the other functions, do the SSE intrinsics honor the rounding >> mode/direction that you've set fesetround()? >> >> // Martin > > Documentation [1] doesn't seem to have such detail. > > Haven't booted to windows, but ran the following on i686 linux: > > #include > #include > #include > #i

Re: [Mingw-w64-public] lrint on x64

2022-06-03 Thread Ozkan Sezer
On 6/3/22, Martin Storsjö wrote: > > For long double, I would presume that you'd still need to use x87, as SSE > can't handle 80 bit long doubles, right? (Or converting down to a plain > double first, then using SSE, probably also works - but I guess that also > might generate x87 instructions.)

Re: [Mingw-w64-public] lrint on x64

2022-06-03 Thread Martin Storsjö
On Fri, 3 Jun 2022, Ozkan Sezer wrote: Why are we using x87 asm instead of sse2 intrinsics for lrint/lrintf ? E.g.: why not do something like the following? diff --git a/mingw-w64-crt/math/lrintl.c b/mingw-w64-crt/math/lrintl.c index d710fac..9f1be51 100644 --- a/mingw-w64-crt/math/lrintl.c +++

[Mingw-w64-public] lrint on x64

2022-06-03 Thread Ozkan Sezer
Why are we using x87 asm instead of sse2 intrinsics for lrint/lrintf ? E.g.: why not do something like the following? diff --git a/mingw-w64-crt/math/lrint.c b/mingw-w64-crt/math/lrint.c index ec80e4e..7831446 100644 --- a/mingw-w64-crt/math/lrint.c +++ b/mingw-w64-crt/math/lrint.c @@ -5,10 +5,16

Re: [Mingw-w64-public] [PATCH] Add missing winsock2 prototypes and definitions

2022-06-03 Thread LIU Hao
在 2022-06-03 12:23, Rafael Lopez 写道: Hi, I have attached a patch for missing prototypes snf definitions for winsock2.h First submission, feedback welcome :) Thank you for the patch. However there are indeed some issues: 1. Please use C89 comments instead of C++ comments. 2. Please keep fun