[flac-dev] issue with flac_internal_CreateFile_utf8

2018-07-10 Thread Olivier Tristan
Hi guys, There is a missing return type in flac_internal_CreateFile_utf8 in case of #if _MSC_VER > 1900 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) I suppose there should ba a return handle; Thanks ! -- Olivier Tristan Research & Development www.uvi.net

[flac-dev] [PATCH 5/7] Check if compiler supports target attribute on ppc64

2018-07-10 Thread Anton Blanchard
From: Amitay Isaacs Check if the compiler supports __attribute__((target("cpu=power8"))) and __attribute__((target("cpu=power9"))) Signed-off-by: Amitay Isaacs --- configure.ac | 20 1 file changed, 20 insertions(+) diff --git a/configure.ac b/configure.ac index

[flac-dev] [PATCH 7/7] Add VSX optimised versions of autocorrelation loops

2018-07-10 Thread Anton Blanchard
Add a POWER8 and POWER9 version of the autocorrelation functions. flac --best is about 3.3x faster on POWER9 with this patch. Signed-off-by: Anton Blanchard --- src/libFLAC/Makefile.am | 1 + src/libFLAC/include/private/lpc.h | 14 + src/libFLAC/lpc_intrin_vsx.c | 942

[flac-dev] [PATCH 6/7] Add runtime detection of POWER8 and POWER9

2018-07-10 Thread Anton Blanchard
Use getauxval() to determine if we are on POWER8 or POWER9 or newer. POWER8 is represented by version 2.07 and POWER9 by version 3.00. Signed-off-by: Anton Blanchard --- src/libFLAC/cpu.c | 31 +++ src/libFLAC/include/private/cpu.h | 6 ++ 2

[flac-dev] [PATCH 4/7] Add m4 macro to check for C __attribute__ features

2018-07-10 Thread Anton Blanchard
From: Amitay Isaacs Signed-off-by: Amitay Isaacs --- m4/c_attribute.m4 | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 m4/c_attribute.m4 diff --git a/m4/c_attribute.m4 b/m4/c_attribute.m4 new file mode 100644 index ..48aa6223 --- /dev/null +++

[flac-dev] [PATCH 0/7] PowerPC64 performance improvements

2018-07-10 Thread Anton Blanchard
The following series adds initial vector support for PowerPC64. On POWER9, flac --best is about 3.3x faster. Amitay Isaacs (2): Add m4 macro to check for C __attribute__ features Check if compiler supports target attribute on ppc64 Anton Blanchard (5): configure.ac: Remove SPE detection

[flac-dev] [PATCH 3/7] configure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64

2018-07-10 Thread Anton Blanchard
FLAC__CPU_PPC wasn't catching powerpcle or powerpc64le. Fix that and add a new define for FLAC__CPU_PPC64. Signed-off-by: Anton Blanchard --- configure.ac | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 592e7750..55078293 100644

[flac-dev] [PATCH 2/7] configure.ac: Add VSX enable/disable

2018-07-10 Thread Anton Blanchard
We want to create functions with PowerPC VSX instructions, so add a configure check. Signed-off-by: Anton Blanchard --- configure.ac | 13 + 1 file changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 77e3628e..592e7750 100644 --- a/configure.ac +++

Re: [flac-dev] [PATCH 0/7] PowerPC64 performance improvements

2018-07-10 Thread Brian Willoughby
Thank you for this collection of patches. How can I test them? What platforms (computers) have the ppc64 or POWER9 processor? Brian On Jul 10, 2018, at 2:31 PM, Anton Blanchard wrote: > > The following series adds initial vector support for PowerPC64. > On POWER9, flac --best is about 3.3x