Displaying 20 results from an estimated 400 matches similar to: "Q: test for CPUID instruction presence"
2016 Dec 05
1
Q: test for CPUID instruction presence
Erik de Castro Lopo wrote:
> lvqcl.mail wrote:
>
>> Currently libFLAC doesn't check the existence of CPUID instruction if
>> FLAC__HAS_X86INTRIN is set to 1.
>> It's not a real problem because x86 CPUs without CPUID are probably
>> extinct, but if libFLAC performs this check then it should do it
>> in all cases (when NASM is available or intrinsics are
2017 Jan 09
2
1.3.2: FLAC__CPUINFO_IA32_CPUID_SSE3 undeclared
Building 1.3.2 on OpenBSD/i386, I get this error:
cpu.c: In function 'ia32_cpu_info':
cpu.c:128: error: 'FLAC__CPUINFO_IA32_CPUID_SSE3' undeclared (first use in this
function)
cpu.c:128: error: (Each undeclared identifier is reported only once
cpu.c:128: error: for each function it appears in.)
cpu.c:129: error: 'FLAC__CPUINFO_IA32_CPUID_SSSE3' undeclared (first use in
2014 Mar 23
0
PATCH for cpu.c
Oliver St?neberg wrote:
>> 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 FLAC__CPUINFO_IA32_CPUID_CMOV 0x00008000U
>> #define FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_3DNOW 0x80000000U
>>
>> and so on?
>
> Maybe
2013 Sep 08
7
PATCH: x86-64 support and SSE intrinscis code
It's not possible to use ia32/*.nasm code in 64-bit compiles.
There's still no 64-bit asm code in FLAC. I'm not familiar with asm too,
so I wrote SSE-accelerated code using intrinsics.
This code uses two new preprocessor macros:
FLAC__CPU_X86_64 (analogous to FLAC__CPU_IA32)
and FLAC__HAS_X86INTRIN (analogous to FLAC__HAS_NASM)
Patch for cpu.c/cpu.h adds CPU features (sse3, ssse3)
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 =
2014 Jun 19
7
[PATCH] stream_encoder : Improve selection of residual accumulator width
In the precompute_partition_info_sums_ function, instead of selecting
64-bit accumulator when the signal bps is larger than 16, revert to the
original approach based on partition size, but make room for few extra
bits to not overflow with unusual signals where the average residual
magnitude may be larger than bps.
It slightly improves the performance with standard encoding levels and
16-bit files
2013 Sep 14
0
PATCH: x86-64 support and SSE intrinscis code
lvqcl wrote:
> It's not possible to use ia32/*.nasm code in 64-bit compiles.
> There's still no 64-bit asm code in FLAC. I'm not familiar with asm too,
> so I wrote SSE-accelerated code using intrinsics.
>
> This code uses two new preprocessor macros:
> FLAC__CPU_X86_64 (analogous to FLAC__CPU_IA32)
Ok, I have defined FLAC__CPU_X86_64 in configure.ac.
> and
2017 Feb 20
0
Flac build issue in debug win x32
Here is a patch that fixes the issue.
There are multiple way to fix it though.
Le 14/02/2017 à 15:08, Olivier Tristan a écrit :
> 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
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 Oct 01
1
[PATCH] fix compile errors with asm disabled
The #endifs are mismatched, and my builds were failing because
lpc_restore_signal* weren't getting declared.
I've also commented the endifs to make them easier to match.
Also, is there any reason #ifdefs for FLAC__HAS_NASM and FLAC__CPU_IA32 are
separate and nested the way they are and not combined like this?:
#if defined(FLAC__CPU_IA32) && defined(FLAC__HAS_NASM)
I'm not
2015 Nov 06
1
[PATCH] for FLAC__cpu_info() in cpu.c
Function FLAC__cpu_xgetbv_x86() is declared and defined only
if FLAC__HAS_X86INTRIN is defined. But now FLAC__cpu_info()
tries to call it even if FLAC__HAS_X86INTRIN is undefined,
which results in link error. This patch fixes the bug.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu_xgetbv.patch
Type: application/octet-stream
Size: 653 bytes
Desc: not
2014 Oct 02
3
problems with configure.ac
1) in config.h FLAC__HAS_X86INTRIN macro is always defined and empty,
even if x86intrin.h is not available.
2) sse_os is defined as 'yes' or 'no', but AM_CONDITIONAL tests it for 'true':
AM_CONDITIONAL(FLaC__SSE_OS, test "x$sse_os" = xtrue)
It seems that it should be changed to
AM_CONDITIONAL(FLaC__SSE_OS, test "x$sse_os" = xyes)
3) configure
2014 Jan 31
2
IA32 and NASM
Is Nasm always available when the target architecture is IA-32?
For example, FLAC has FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_NN() functions
that require NASM presence, and FLAC__lpc_compute_autocorrelation_intrin_sse_lag_NN()
functions that require x86 intrinsics support.
FLAC makes use of the former (if NASM is available) but doesn't try to use
the latter when NASM is not found.
2013 Sep 14
3
PATCH: x86-64 support and SSE intrinscis code
Erik de Castro Lopo wrote:
> When should FLAC__HAS_X86INTRIN be defined? What header file should I be
> checking for?
Ah, should be checking for <x86intrin.h>.
The rest seems to be coming together. Testing this now.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2014 Nov 12
2
[PATCH] for configure.ac
> lvqcl wrote:
>
>> 1) in config.h FLAC__HAS_X86INTRIN macro is always defined and empty,
>> even if x86intrin.h is not available.
>>
>> 2) sse_os is defined as 'yes' or 'no', but AM_CONDITIONAL tests it for 'true':
>
> The patch is attached. Please check it.
Ping.
Is the fix of FLAC__HAS_X86INTRIN definition necessary?
Anyway I think
2004 Sep 10
1
checking OS support for SSE
Here is patch for checking OS SSE support for systems
having vfork()/fork() function.
Index: src/libFLAC/cpu.c
===================================================================
RCS file: /cvsroot/flac/flac/src/libFLAC/cpu.c,v
retrieving revision 1.8
diff -u -r1.8 cpu.c
--- src/libFLAC/cpu.c 2001/07/18 00:24:46 1.8
+++ src/libFLAC/cpu.c 2001/07/27 08:57:04
@@ -21,6 +21,20 @@
2014 Feb 28
1
PATCH: CPU feature detection when NASM n/a
There was a commit "Fall back to intrinsics if NASM is not available"
( http://git.xiph.org/?p=flac.git;a=commit;h=d163ef456797ef4807138b0ecb5da9ff05e147e2 )
But CPU detection code for IA-32 uses ASM code, and cpuinfo.use_asm == false
when NASM isn't available. The attached patch fixes it. Now CPU features are
also detected when only FLAC__HAS_X86INTRIN is defined.
--------------
2015 Feb 23
1
[PATCH] about configure.ac
configure.ac still has two places that aren't fully correct:
1) it creates incorrect definition of FLAC__HAS_X86INTRIN in config.h file.
2)AM_CONDITIONAL(FLaC__SSE_OS...) compares sse_os with 'true' instead of 'yes'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf_ac.patch
Type: application/octet-stream
Size: 1074 bytes
Desc: not
2013 Jan 04
1
Flac Decoder
Gud day to all,
I am new in LibFlac development
I 1.2.1 version of LibFlac source code.
I dont want to support OGG Flac and I dont have a NASM on my system.
I do have Visual Studio 2010 and Visual Studio 2005.
I am trying to build only the static library for C but it always end up having some error.
Could anyone can help me how to built the library using VS 2010 or 2005?
I do some research, And
2006 Apr 02
2
Recognition failed for "/rails_info/properties"
Hello. I can''t figure out why I''m getting the following problem, or
how to fix it.
I have Rails 1.1.0 installed on both OS X and Solaris, and in both new
and old projects, and using either WEBrick or lighttpd, I get:
Recognition failed for "/rails_info/properties"
when lining to it off the welcome to rails page. I get the following
errors through the console: