Displaying 10 results from an estimated 10 matches for "__cpuidex".
2016 Jun 26
1
FLAC__SSE_OS change
lvqcl wrote:
> No, MSVC 2015 is also affected. I renamed __cpuid() to __cpuid22(),
I thought the original problem was with `___cpuidex`, not `__cpuid`!
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2016 Jun 26
4
FLAC__SSE_OS change
...finition of cpu_xgetbv_x86() fails.
> It can be fixed by adding "#include share/compat.h" to cpu.c (or by using
> FLAC__uint32 from FLAC/ordinals.h).
Ok, added share/compat.h.
> When I fix this, the following problem occurs:
>
> error LNK2019: unresolved external symbol ___cpuidex referenced in function _FLAC__cpu_info_x86 libflac_static.lib
> fatal error LNK1120: 1 unresolved externals flac.exe
>
> The code
>
> if (FLAC__AVX_SUPPORTED)
> __cpuidex(cpuinfo, level, 0); /* for AVX2 detection */
> else
> __cpuid(cpuinfo, lev...
2017 Jan 02
2
FLAC 1.3.2 has been released
.../cpu.c b/src/libFLAC/cpu.c
index b9df19a..808d55d 100644
--- a/src/libFLAC/cpu.c
+++ b/src/libFLAC/cpu.c
@@ -269,9 +269,9 @@ void FLAC__cpu_info_x86(FLAC__uint32 level, FLAC__uint32 *eax, FLAC__uint32 *ebx
__cpuid(cpuinfo, ext);
if((unsigned)cpuinfo[0] >= level) {
#if FLAC__AVX_SUPPORTED
- __cpuidex(cpuinfo, ext, 0); /* for AVX2 detection */
+ __cpuidex(cpuinfo, level, 0); /* for AVX2 detection */
#else
- __cpuid(cpuinfo, ext); /* some old compilers don't support __cpuidex */
+ __cpuid(cpuinfo, level); /* some old compilers don't support __cpuidex */
#endif
*eax = cpuinfo[0];...
2016 Jun 26
5
FLAC__SSE_OS change
First off, this code is horrible to read and work on. The recent commits
are the first of what I hope is a massive clean up of this code.
lvqcl wrote:
> So if I understand things correctly, the current meaning of --(en|dis)able-sse is:
>
> on Linux:
> --enable-sse:
> add -msse2 to the compiler switches
> do not test SSE OS support (assume that SSE is
2017 Jan 01
12
FLAC 1.3.2 has been released
Hi all,
The latest version of FLAC has been releases. See:
https://xiph.org/flac/index.html
https://xiph.org/flac/changelog.html
The source tarball and Windows binaries are available (with
md5 and sha256 checksums) at:
http://downloads.xiph.org/releases/flac/
The source tarball is also available at:
https://sourceforge.net/projects/flac/files/flac-src/
and similarly the
2015 Jun 11
2
[LLVMdev] Self compiling latest clang from SVN
...external symbol
_xgetbv referenced in function "class llvm::StringRef __cdecl
llvm::sys::getHostCPUName(void)"
(?getHostCPUName at sys@llvm@@YA?AVStringRef at 2@XZ)
[C:\llvm-svn\build\utils\FileCheck\FileCheck.vcxproj]
LLVMSupport.lib(Host.obj) : error LNK2019: unresolved external symbol
__cpuidex referenced in function "class llvm::StringRef __cdecl
llvm::sys::getHostCPUName(void)"
(?getHostCPUName at sys@llvm@@YA?AVStringRef at 2@XZ)
[C:\llvm-svn\build\utils\FileCheck\FileCheck.vcxproj]
Anyone know what the problem is here?
More generally, is it considered useful to run these s...
2013 Nov 23
0
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
...hgq\t%%rbx, %%rsi\n\t"
+ : "=a" (*rEAX),
+ "=S" (*rEBX),
+ "=c" (*rECX),
+ "=d" (*rEDX)
+ : "a" (value),
+ "c" (subleaf));
+ return false;
+ #elif defined(_MSC_VER)
+ // __cpuidex was added in MSVC++ 9.0 SP1
+ #if (_MSC_VER > 1500) || (_MSC_VER == 1500 && _MSC_FULL_VER >= 150030729)
+ int registers[4];
+ __cpuidex(registers, value, subleaf);
+ *rEAX = registers[0];
+ *rEBX = registers[1];
+ *rECX = registers[2];
+ *rEDX = regist...
2015 Jun 12
2
[LLVMdev] Self compiling latest clang from SVN
...n "class llvm::StringRef __cdecl
>> llvm::sys::getHostCPUName(void)" (?getHostCPUName at sys@llvm@
>> @YA?AVStringRef at 2@XZ)
>> [C:\llvm-svn\build\utils\FileCheck\FileCheck.vcxproj]
>> LLVMSupport.lib(Host.obj) : error LNK2019: unresolved external symbol
>> __cpuidex referenced in function "class llvm::StringRef __cdecl
>> llvm::sys::getHostCPUName(void)" (?getHostCPUName at sys@llvm@
>> @YA?AVStringRef at 2@XZ)
>> [C:\llvm-svn\build\utils\FileCheck\FileCheck.vcxproj]
>>
>> Anyone know what the problem is here?
>>
&...
2013 Nov 23
2
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
I agree with Tim, you need to implement a GetCpuIDAndInfoEx function in
Host.cpp and pass the correct value to ecx. Also you need to verify that 7
is a valid leaf because an invalid leaf is defined to return the highest
supported leaf on that processor. So if a processor supports say leaf 6 and
not leaf 7, then an access leaf 7 will return the data from leaf 6 causing
unrelated bits to be
2020 Aug 28
0
Wine release 5.16
...ng context save and restore on x64.
include: Update _XSTATE_CONFIGURATION structure definition.
ntdll: Remove redundant ldmxcsr in set_full_cpu_context() on x86_64.
include: Define _XSAVE_FORMAT structure.
include: Define extended context structures.
include: Implement __cpuidex() function.
wineboot: Initialize XState features in user_shared_data.
kernel32: Implement GetEnabledXStateFeatures().
ntdll/tests: Add test for xstate in extended context.
ntdll: Support AVX context in fault exceptions on Linux x86_64.
ntdll: Restore AVX registers in N...