Displaying 17 results from an estimated 17 matches for "flac__cpuinfo".
2019 Aug 18
1
1.3.3: powerpc portability problems
...AC_CHECK_SIZEOF(void*,1)
Index: src/libFLAC/cpu.c
--- src/libFLAC/cpu.c.orig
+++ src/libFLAC/cpu.c
@@ -53,7 +53,7 @@
#define dfprintf(file, format, ...)
#endif
-#if defined FLAC__CPU_PPC
+#if defined(HAVE_SYS_AUXV_H)
#include <sys/auxv.h>
#endif
@@ -236,7 +236,10 @@ x86_cpu_info (FLAC__CPUInfo *info)
static void
ppc_cpu_info (FLAC__CPUInfo *info)
{
-#if defined FLAC__CPU_PPC
+ info->ppc.arch_2_07 = false;
+ info->ppc.arch_3_00 = false;
+
+#if defined(FLAC__CPU_PPC) && defined(HAVE_GETAUXVAL)
#ifndef PPC_FEATURE2_ARCH_3_00
#define PPC_FEATURE2_ARCH_3_00 0x00800000
#en...
2014 Jul 27
1
[PATCH] remove obsolete cpu_info from struct FLAC__BitReader
In FLAC 1.2.0, a new field 'FLAC__CPUInfo cpu_info' was added to the
struct FLAC__BitReader. It became useless in 1.3.0 because of
various bitreader optimizations. The first patch removes it
and also removes FLAC__CPUInfo argument of FLAC__bitreader_init() function.
The second patch removes a comment about struct FLAC__BitReader.
It...
2013 Sep 24
1
PATCHES for cpu.h/cpu.c
The first patch adds SSE4.1/SSE4.2 detection.
The second patch removes union data in struct FLAC__CPUInfo and
replaces it with #ifdefs. Reason: currently it's possible to set or
get data.ia32.sse3 value from x86-64 code, etc. It's a potential
source of errors (at least that's true for me).
(the 2nd patch requires the 1st to be applied)
-------------- next part --------------
A non-text att...
2014 Aug 07
1
[PATCH] for cpu.c
This patch moves all
info->ia32.fxsr = info->ia32.sse = info->ia32.sse2 = info->ia32.sse3 = info->ia32.ssse3 = info->ia32.sse41 = info->ia32.sse42 = false;
expressions into a static function disable_sse(FLAC__CPUInfo *info).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify_cpu_c.zip
Type: application/zip
Size: 1163 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140807/e17308ce/attachment.zip
2014 Sep 23
1
[PATCH] for cpu.h
Currently the structure of FLAC__cpu_info() is:
void FLAC__cpu_info(FLAC__CPUInfo *info)
{
... // init
if(info->ia32.cpuid) {
... // very long code
...
...
...
...
...
...
...
}
}
This patch changes it to:
void FLAC__cpu_info(FLAC__CPUInfo *info)
{
... // init
if(info->ia...
2016 Jun 28
2
Please test more libFLAC/cpu.c changes
lvqcl wrote:
> Found a bug in Android OS SSE test.
Sorry, what is the bug and how does this fix it?
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2018 Jul 10
9
[PATCH 0/7] PowerPC64 performance improvements
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 code
configure.ac: Add VSX enable/disable
configure.ac: Fix FLAC__CPU_PPC on little endian, and add
2008 Jun 14
0
[Flac] Ogg Codecs 0.80.15035
...AC source code from 1.1.0 to 1.2.1, with an older
> package (oggcodecs_0.73.1936.exe),
> but I want to deliver the new FLAC.
>
> Any pointers?
Because the HEAP Corruption was only 8 bytes. So I've thought of giving
more memory:
FLAC__bool FLAC__bitreader_init(FLAC__BitReader *br, FLAC__CPUInfo cpu,
FLAC__BitReaderReadCallback rcb, void *cd)
{
FLAC__ASSERT(0 != br);
br->words = br->bytes = 0;
br->consumed_words = br->consumed_bits = 0;
br->capacity = FLAC__BITREADER_DEFAULT_CAPACITY;
br->buffer = (brword*)malloc(sizeof(brword) * (br->capacity...
2016 Jun 30
2
Please test more libFLAC/cpu.c changes
lvqcl wrote:
> Erik de Castro Lopo wrote:
>
> >> Found a bug in Android OS SSE test.
> >
> > Sorry, what is the bug and how does this fix it?
>
> FLAC__cpu_info(FLAC__CPUInfo *info): detects CPU features
> that can be used and sets corresponding flags in the info
> struct.
This code is in flux and in the current state the logic probably
has inconsistencies that will be fixed in due course.
What I am very much more interested in is if the code in the
wip/cpu bran...
2017 Feb 14
2
Flac build issue in debug win x32
Hi Guys,
The following code in CPU.c (line 155) won't link if you don't have NASM
code built even if FLAC__HAS_X86INTRIN is true as
FLAC__cpu_info_asm_ia32 don't exists and the else is compiled if there
is no dead code stripping
if (FLAC__HAS_X86INTRIN) {
FLAC__cpu_info_x86(0, &flags_eax, &flags_ebx, &flags_ecx,
&flags_edx);
info->ia32.intel =
2017 Feb 20
0
Flac build issue in debug win x32
...arch & Development
www.uvi.net
-------------- next part --------------
src/libFLAC/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c
index 5f86809..4bad89c 100644
--- a/src/libFLAC/cpu.c
+++ b/src/libFLAC/cpu.c
@@ -118,7 +118,9 @@ ia32_cpu_info (FLAC__CPUInfo *info)
FLAC__cpu_info_x86(1, &flags_eax, &flags_ebx, &flags_ecx, &flags_edx);
}
else {
+#if FLAC__HAS_NASM
FLAC__cpu_info_asm_ia32(&flags_edx, &flags_ecx);
+#endif
}
info->ia32.cmov = (flags_edx & FLAC__CPUINFO_IA32_CPUID_CMOV ) ? true : false;
2008 Jun 14
1
[Flac] Ogg Codecs 0.80.15035
Hi all,
I've made a test release for Ogg DirectShow Codecs.
You can find it here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
The problem is that I get a HEAP Corruption detected at:
void FLAC__bitreader_free(FLAC__BitReader *br)
{
FLAC__ASSERT(0 != br);
if(0 != br->buffer)
free(br->buffer);
The call stack is:
>
2008 Jun 14
1
Ogg Codecs 0.80.15035
Hi all,
I've made a test release for Ogg DirectShow Codecs.
You can find it here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
The problem is that I get a HEAP Corruption detected at:
void FLAC__bitreader_free(FLAC__BitReader *br)
{
FLAC__ASSERT(0 != br);
if(0 != br->buffer)
free(br->buffer);
The call stack is:
>
2004 Sep 10
3
Altivec, automake
I think I've gotten FLAC__lpc_restore_signal() about as good as I'm going to
get it.
Here's what I have:
-a new file, lpc_asm.s, which has the assembly routines
-changes to cpu.h, cpu.c, and stream_decoder.c to enable them
-changes to configure.in to support the new cpu stuff
-a preliminary Makefile.am
-maybe something else I'm forgetting
Now automake complains that configure.in
2004 Sep 10
2
Altivec, automake
...#include <config.h>
#endif
+ #if defined FLAC__CPU_PPC
+ #if !defined FLAC__NO_ASM
+ #if defined __APPLE__ && defined __MACH__
+ #include <sys/sysctl.h>
+ #endif /* __APPLE__ && __MACH__ */
+ #endif /* FLAC__NO_ASM */
+ #endif /* FLAC__CPU_PPC */
+
const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000;
const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000;
const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000;
***************
*** 78,83 ****
--- 86,115 ----
#else
info->use_asm = false;
#endif
+ #elif defined FLAC__CPU_PPC
+ info->type = FLAC__...
2012 Apr 07
1
[PATCH 2/2] Update and improve autotools build
...define FLaC__INLINE
-#endif
-
/* WATCHOUT: assembly routines rely on the order in which these fields are declared */
struct FLAC__BitReader {
/* any partially-consumed word at the head will stay right-justified as bits are consumed from the left */
@@ -138,7 +134,7 @@ struct FLAC__BitReader {
FLAC__CPUInfo cpu_info;
};
-static FLaC__INLINE void crc16_update_word_(FLAC__BitReader *br, uint32_t word)
+static inline void crc16_update_word_(FLAC__BitReader *br, uint32_t word)
{
register unsigned crc = br->read_crc16;
#if FLAC__BYTES_PER_WORD == 4
@@ -373,17 +369,17 @@ FLAC__uint16 FLAC__bitread...
2008 Mar 14
2
bitreader optimizations
...=======================================================
RCS file: /cvsroot/flac/flac/src/libFLAC/bitreader.c,v
retrieving revision 1.15
diff -u -r1.15 bitreader.c
--- src/libFLAC/bitreader.c 28 Feb 2008 05:34:26 -0000 1.15
+++ src/libFLAC/bitreader.c 14 Mar 2008 13:19:46 -0000
@@ -149,6 +148,7 @@
FLAC__CPUInfo cpu_info;
};
+#if FLAC__BYTES_PER_WORD == 4 && FLAC__CPU_IA32
#ifdef _MSC_VER
/* OPT: an MSVC built-in would be better */
static _inline FLAC__uint32 local_swap32_(FLAC__uint32 x)
@@ -173,6 +173,15 @@
done1:
}
}
+#elif __GNUC__
+static void local_swap32_block_(FLAC__uint32 *start,...