Re: [Mingw-w64-public] [PATCH] headers: codecapi add missing enums

2020-04-08 Thread Biswapriyo Nath
Updated. From: Biswapriyo Nath Date: Wed, 8 Apr 2020 19:14:50 +0530 Subject: [PATCH] headers: codecapi add missing enums Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/codecapi.h | 572 +-- 1 file changed, 538 insertions(+), 34 deletions(-) diff --git

Re: [Mingw-w64-public] Proposal to add a code formatting rule

2020-04-08 Thread NightStrike
On Sat, Apr 4, 2020 at 1:04 AM Biswapriyo Nath wrote: > > The coding style is different in many files in mingw-w64 headers and crt. > Is it possible to add a rule to enforce a consistent coding style across > all the source file? For example, using clang-fromat, editorconfig etc. > lightweight

Re: [Mingw-w64-public] [PATCH 1/6] winpthreads: simplify the USE_VEH_FOR_MSC_SETTHREADNAME check

2020-04-08 Thread LRN
On 08.04.2020 18:13, Steve Lhomme wrote: > When compiling with other compilers than MSVC, we always use the code > relying on USE_VEH_FOR_MSC_SETTHREADNAME. > > -#if !defined(_MSC_VER) || defined (USE_VEH_FOR_MSC_SETTHREADNAME) > +#if !defined(_MSC_VER) > +#define USE_VEH_FOR_MSC_SETTHREADNAME >

[Mingw-w64-public] [PATCH 2/6] winpthreads: do not use the XXXExceptionHandler API in winstore builds

2020-04-08 Thread Steve Lhomme
Calling RemoveVectoredExceptionHandler()/AddVectoredExceptionHandler() is forbidden in non-desktop apps. https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-addvectoredexceptionhandler

[Mingw-w64-public] [PATCH 1/6] winpthreads: simplify the USE_VEH_FOR_MSC_SETTHREADNAME check

2020-04-08 Thread Steve Lhomme
When compiling with other compilers than MSVC, we always use the code relying on USE_VEH_FOR_MSC_SETTHREADNAME. The __try/__except check code is not modified as it relies on internal MSVC dialect. With MSVC either USE_VEH_FOR_MSC_SETTHREADNAME was set but that code wasn't use anyway (unchanged)

[Mingw-w64-public] [PATCH 4/6] winpthreads: simplify the handle validity in pthread_check()

2020-04-08 Thread Steve Lhomme
--- mingw-w64-libraries/winpthreads/src/sched.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index bdd4301b..df3c60ea 100644 --- a/mingw-w64-libraries/winpthreads/src/sched.c

[Mingw-w64-public] [PATCH 5/6] winpthreads: do not call GetHandleInformation in winstore build

2020-04-08 Thread Steve Lhomme
The call is forbidden on non-desktop apps. The check on INVALID_HANDLE_VALUE should be good enough. --- mingw-w64-libraries/winpthreads/src/misc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/misc.h b/mingw-w64-libraries/winpthreads/src/misc.h

[Mingw-w64-public] [PATCH 6/6] winpthreads: don't call SetThreadContext in winstore builds

2020-04-08 Thread Steve Lhomme
The call is forbidden. Hopefully the deferred Canceling mechanism below will work and this is not needed. --- mingw-w64-libraries/winpthreads/src/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c

[Mingw-w64-public] [PATCH 3/6] winpthreads: always return 0 in pthread_check() if the thread ended is 0

2020-04-08 Thread Steve Lhomme
The code does the same but in a cleaner way, making room for the next patch. --- mingw-w64-libraries/winpthreads/src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index

[Mingw-w64-public] [PATCH] Add the IApplicationData2 storage interface

2020-04-08 Thread Steve Lhomme
It allows getting the LocalCacheFolder https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata.localcachefolde --- mingw-w64-headers/include/windows.storage.h | 114 ++ mingw-w64-headers/include/windows.storage.idl | 5 + 2 files changed, 119 insertions(+)

Re: [Mingw-w64-public] [PATCH] headers: codecapi add missing enums

2020-04-08 Thread Liu Hao
在 2020/4/8 21:49, Biswapriyo Nath 写道: > ... > > > > + enum eAVEncVP9VProfile { > +eAVEncVP9VProfile_unknown = 0, > +eAVEncVP9VProfile_420_8 = 1, > +eAVEncVP9VProfile_420_10 = 2, > +eAVEncVP9VProfile_420_12 = 3, ---^ Probably this trailing comma

Re: [Mingw-w64-public] [PATCH 3/3] crt: Convert the arm sincos.c to assembly

2020-04-08 Thread Martin Storsjö
On Wed, 8 Apr 2020, Liu Hao wrote: 在 2020/4/8 2:01, Martin Storsjö 写道: This avoids optimizing the sincos function to a recursive call to itself, if built with -ffast-math (unless built with -fno-builtin-sin). While building with -ffast-math can break certain math routines and thus can be

[Mingw-w64-public] [PATCH] headers: codecapi add missing enums

2020-04-08 Thread Biswapriyo Nath
... From e93b22a07dfd67ab9841951b09c6b0617cefd6e4 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 8 Apr 2020 19:14:50 +0530 Subject: [PATCH] headers: codecapi add missing enums Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/codecapi.h | 572 +--