diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-04-26 11:28:35 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 15:32:34 +0200 |
commit | 93132154b5283bf26baee47c60471a245884382f (patch) | |
tree | b06652f2cb6dd5f9051dbe2985761779d8e16ce4 /src/corelib/tools/qsimd.cpp | |
parent | 8c59e22538b54c9170376bf22e2e6be054b38454 (diff) |
Fix C++11 compilation
Fix compilation with compilers that support user defined literal
(such as GCC 4.7)
Change-Id: I31cd3d2177688f963ab33cf68cd6060a5fb8640f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qsimd.cpp')
-rw-r--r-- | src/corelib/tools/qsimd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/corelib/tools/qsimd.cpp b/src/corelib/tools/qsimd.cpp index 4b6ab4918a..837c78171e 100644 --- a/src/corelib/tools/qsimd.cpp +++ b/src/corelib/tools/qsimd.cpp @@ -183,9 +183,9 @@ static int maxBasicCpuidSupported() # endif int result; - asm ("xchg "PICreg", %1\n" + asm ("xchg " PICreg", %1\n" "cpuid\n" - "xchg "PICreg", %1\n" + "xchg " PICreg", %1\n" : "=&a" (result), "=&r" (tmp1) : "0" (0) : "ecx", "edx"); @@ -204,9 +204,9 @@ static void cpuidFeatures01(uint &ecx, uint &edx) edx = info[3]; #elif defined(Q_CC_GNU) long tmp1; - asm ("xchg "PICreg", %2\n" + asm ("xchg " PICreg", %2\n" "cpuid\n" - "xchg "PICreg", %2\n" + "xchg " PICreg", %2\n" : "=&c" (ecx), "=&d" (edx), "=&r" (tmp1) : "a" (1)); #endif @@ -220,9 +220,9 @@ static void cpuidFeatures07_00(uint &ebx) ebx = info[1]; #elif defined(Q_CC_GNU) unsigned long rbx; // in case it's 64-bit - asm ("xchg "PICreg", %0\n" + asm ("xchg " PICreg", %0\n" "cpuid\n" - "xchg "PICreg", %0\n" + "xchg " PICreg", %0\n" : "=&r" (rbx) : "a" (7), "c" (0) : "%edx"); |