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

2020-04-07 Thread 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 considered a self-inflicted issue, it's safest to avoid constructs that potentia

[Mingw-w64-public] [PATCH 1/3] crt: Use -mfpu=vfpv3 instead of -mfpu=vfp for arm32

2020-04-07 Thread Martin Storsjö
This allows using a few more instructions in assembly implementations. VFPv3 is a mandatory part of armv7. Signed-off-by: Martin Storsjö --- mingw-w64-crt/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index d

[Mingw-w64-public] [PATCH 2/3] crt: Replace the arm version of exp2.c with assembly files

2020-04-07 Thread Martin Storsjö
If built with -ffast-math, clang replaces the call to pow(2, x) with exp2(x) directly, making the implementation of exp2() an infinite recursion. This can be either avoided by building these object files with -fno-builtin, -fno-builtin-pow, or by implementing the function in assembly. For aarch64,

Re: [Mingw-w64-public] [PATCH 5/5] headers: Add a few more new guids to mftransform.idl

2020-04-07 Thread Martin Storsjö
On Tue, 7 Apr 2020, Liu Hao wrote: 在 2020/4/7 16:36, Martin Storsjö 写道: There's many, many others missing, but these are the ones currently used by one piece of code I'm working on. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/mftransform.h | 10 ++ mingw-w64-headers

Re: [Mingw-w64-public] [PATCH 5/5] headers: Add a few more new guids to mftransform.idl

2020-04-07 Thread Liu Hao
在 2020/4/7 16:36, Martin Storsjö 写道: > There's many, many others missing, but these are the ones currently > used by one piece of code I'm working on. > > Signed-off-by: Martin Storsjö > --- > mingw-w64-headers/include/mftransform.h | 10 ++ > mingw-w64-headers/include/mftransform.idl

Re: [Mingw-w64-public] [PATCH 4/5] headers: Add a few more guids and enums to codecapi.h

2020-04-07 Thread Martin Storsjö
On Tue, 7 Apr 2020, Martin Storsjö wrote: There's many, many others missing, but these are the ones currently used by one piece of code I'm working on. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/codecapi.h | 41 1 file changed, 41 insertions(+) Fo

Re: [Mingw-w64-public] [PATCH 3/5] headers: Include codecapi.h in uuids.h and define UUID_GEN if INITGUID is defined

2020-04-07 Thread Martin Storsjö
On Tue, 7 Apr 2020, Martin Storsjö wrote: Without this, the guids defined in codecapi.h essentially can't be used. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/uuids.h | 5 + 1 file changed, 5 insertions(+) diff --git a/mingw-w64-headers/include/uuids.h b/mingw-w64-headers/

[Mingw-w64-public] [PATCH 4/5] headers: Add a few more guids and enums to codecapi.h

2020-04-07 Thread Martin Storsjö
There's many, many others missing, but these are the ones currently used by one piece of code I'm working on. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/codecapi.h | 41 1 file changed, 41 insertions(+) diff --git a/mingw-w64-headers/include/codecap

[Mingw-w64-public] [PATCH 2/5] headers: Fix missing enum values in mfobjects.h

2020-04-07 Thread Martin Storsjö
The ifdefs (that aren't within cpp_quote()) in the idl file aren't brought along as such, but are evaluated when widl interprets the file, which means the enclosed declarations are left out, and the ifdefs don't make it into the final header. Signed-off-by: Martin Storsjö --- mingw-w64-headers/i

[Mingw-w64-public] [PATCH 1/5] headers: Use EXTERN_GUID and DEFINE_PROPERTYKEY instead of a custom macro in mftransform.idl

2020-04-07 Thread Martin Storsjö
These macros achieve exactly the same as the custom macro. That macro was added in 84b180158009d4210f72d76e3888214dae045dab to avoid compiler warnings - earlier d551b7d85ec63c0fa33f1a51ec5157722709fc53 tried to fix the same warnings as well with a different setup. But these standard macros that are

[Mingw-w64-public] [PATCH 3/5] headers: Include codecapi.h in uuids.h and define UUID_GEN if INITGUID is defined

2020-04-07 Thread Martin Storsjö
Without this, the guids defined in codecapi.h essentially can't be used. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/uuids.h | 5 + 1 file changed, 5 insertions(+) diff --git a/mingw-w64-headers/include/uuids.h b/mingw-w64-headers/include/uuids.h index ec93ec2a6..1af246a3d

[Mingw-w64-public] [PATCH 5/5] headers: Add a few more new guids to mftransform.idl

2020-04-07 Thread Martin Storsjö
There's many, many others missing, but these are the ones currently used by one piece of code I'm working on. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/mftransform.h | 10 ++ mingw-w64-headers/include/mftransform.idl | 10 ++ 2 files changed, 20 insertions(+)