search for: flac__cpuinfo_ia32_cpuid_fxsr

Displaying 7 results from an estimated 7 matches for "flac__cpuinfo_ia32_cpuid_fxsr".

2014 Mar 22
2
PATCH for cpu.c
...^ src/lib/libflac/libFLAC/cpu.c:91:23: error: unused variable 'FLAC__CPUINFO_IA32_CPUID_MMX' [-Werror,-Wunused-const-variable] static const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000; ^ src/lib/libflac/libFLAC/cpu.c:92:23: error: unused variable 'FLAC__CPUINFO_IA32_CPUID_FXSR' [-Werror,-Wunused-const-variable] static const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000; ^ src/lib/libflac/libFLAC/cpu.c:93:23: error: unused variable 'FLAC__CPUINFO_IA32_CPUID_SSE' [-Werror,-Wunused-const-variable] static const unsigned FLAC__CPUINFO_I...
2014 Mar 23
2
PATCH for cpu.c
> Oliver St?neberg wrote: > > > This is simply fixed by putting those unused constants into the > > proper defines. I attached a patch against git 70b078c. > > Unfortunately it breaks x86_64 build (where FLAC__CPU_X86_64 is defined, and > FLAC__CPU_IA32 isn't). Maybe it's simpler to turn them into #defines such as > > #define
2004 Sep 10
1
checking OS support for SSE
...fndef FLAC__SSE_OS +#ifndef NO_VFORK +#include <unistd.h> +#include <sys/types.h> +#include <sys/wait.h> +#endif +#endif +#endif +#endif +#endif + const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000; const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000; const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000; @@ -44,17 +58,37 @@ info->data.ia32.mmx = (cpuid & FLAC__CPUINFO_IA32_CPUID_MMX)? true : false; info->data.ia32.fxsr = (cpuid & FLAC__CPUINFO_IA32_CPUID_FXSR)? true : false; info->data.ia32.sse = (cpuid & FLAC__CPUINFO_IA32_CPUID_SSE)? true : false; - in...
2005 Feb 11
1
FreeBSD 4.x problem resolved
...src/libFLAC/cpu.c @@ -25,6 +25,11 @@ #include <config.h> #endif +#ifdef __FreeBSD__ +#include <sys/types.h> +#include <sys/sysctl.h> +#endif + const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000; const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000; const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000; @@ -52,6 +57,15 @@ #ifndef FLAC__SSE_OS info->data.ia32.fxsr = info->data.ia32.sse = info->data.ia32.sse2 = false; +#else +#if defined(__FreeBSD__) + { + int sse; + size_t len = sizeof(sse); + if (sysctlbyname("hw.instruction_sse", &sse, &len, N...
2014 Mar 23
0
PATCH for cpu.c
...p;& !defined FLAC__NO_ASM && (defined FLAC__HAS_NASM || defined FLAC__HAS_X86INTRIN) /* these are flags in EDX of CPUID AX=00000001 */ static const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000; static const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000; static const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000; static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE = 0x02000000; static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE2 = 0x04000000; /* these are flags in ECX of CPUID AX=00000001 */ static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001; static const unsigned FLAC__CPUINFO_IA...
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
...p;& 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__CPUINFO_TYPE_PPC; + #if !defined FLAC__NO_ASM + info->use_asm = true; + #ifdef FLAC__USE_ALTIVEC + #if defined __APPLE__ && d...