search for: _msc_full_ver

Displaying 9 results from an estimated 9 matches for "_msc_full_ver".

2013 Apr 17
3
[LLVMdev] Patch to compile LLVM with MSVC 2010
...vision 179701)+++ lib/Support/Host.cpp (working copy)@@ -119,7 +119,7 @@ // there is no easy way to conditionally compile based on the assembler used. int rEAX, rEDX; __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0));-#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219+#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK); #else int rEAX = 0; // Ensures we return false -------------- next part -------------- An HTML attachment wa...
2013 Apr 18
0
[LLVMdev] Patch to compile LLVM with MSVC 2010
...cpp (working copy) > @@ -119,7 +119,7 @@ > // there is no easy way to conditionally compile based on the assembler > used. > int rEAX, rEDX; > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 > unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK); > #else > int rEAX = 0; // Ensures we return false > > > ___________________________________...
2013 Apr 18
2
[LLVMdev] Patch to compile LLVM with MSVC 2010
...@ -119,7 +119,7 @@ > > // there is no easy way to conditionally compile based on the assembler > > used. > > int rEAX, rEDX; > > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 > > unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK); > > #else > > int rEAX = 0; // Ensures we return false > > > > > >...
2013 Apr 18
0
[LLVMdev] Patch to compile LLVM with MSVC 2010
...t; > @@ -119,7 +119,7 @@ > > // there is no easy way to conditionally compile based on the assembler > > used. > > int rEAX, rEDX; > > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 > > unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK); > > #else > > int rEAX = 0; // Ensures we return false > > > > > > _______...
2016 May 01
2
[PATCH] workaround for a bug in MSVC 2015 U2
As I wrote earlier, MSVC 2015 U2 incorrectly compiles stream_encoder_intrin_*.c files for x86-64 platform. As a result, flac works, but compression ratio is close to 1. This patch disables some compiler optimizations, and compression ratio reverts back to normal values. -------------- next part -------------- A non-text attachment was scrubbed... Name: msvc_bug.patch Type: application/octet-stream
2016 May 02
2
[PATCH] workaround for a bug in MSVC 2015 U2
...that is, almost all files). IMHO it's too broad. It seems that this problem with MSVC is local and only stream_encoder_intrin_*.c are affected. Or do you mean something like that -- share/compat.h: #if defined FLAC_ENABLE_MSVC2015U2_WORKAROUND1 #if (defined _MSC_VER) && (_MSC_FULL_VER == 190023918) && (defined FLAC__CPU_X86_64) #pragma optimize("g", off) /* workaround for a bug in MSVC 2015 U2 */ #endif #endif src/libFLAC/stream_encoder_intrin_*.c: #define FLAC_ENABLE_MSVC2015U2_WORKAROUND1 #include "share/compat.h" -- ? ....
2016 May 02
1
[PATCH] workaround for a bug in MSVC 2015 U2
Erik de Castro Lopo wrote: > Ok, I'll take the original patch as it is. DO you have a link to a > bug report on this problem? It would be nice to put it in a comment > above the workaround. :sigh: I hoped that somebody else will find what's wrong and will create a bugreport... Well, here is the link:
2013 Nov 23
0
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
...+ "=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 = registers[3]; + return false; + #else + return true; + #endif + #else + return true; + #e...
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