summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-09-28 08:45:43 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-09-28 14:00:10 (GMT)
commit61e0576f7b6b7cf3330f58b51e3e5e213919c6bf (patch)
tree7de65cbcdebb3e1e8a17458e576cd9c29360fce8 /src
parente7251f297bed568365dadf77e61aeb4a579a4a81 (diff)
downloadQt-61e0576f7b6b7cf3330f58b51e3e5e213919c6bf.zip
Qt-61e0576f7b6b7cf3330f58b51e3e5e213919c6bf.tar.gz
Qt-61e0576f7b6b7cf3330f58b51e3e5e213919c6bf.tar.bz2
Use quint64 (long long) instead of long for the GCC assembly code.
Windows 64-bit has sizeof(long) == 4, which doesn't match the register size. Task-number: reported on IRC Reviewed-by: Trust Me
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qsimd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qsimd.cpp b/src/corelib/tools/qsimd.cpp
index 7babf3a..b2fe2da 100644
--- a/src/corelib/tools/qsimd.cpp
+++ b/src/corelib/tools/qsimd.cpp
@@ -286,7 +286,7 @@ static inline uint detectProcessorFeatures()
uint feature_result = 0;
#if defined(Q_CC_GNU)
- long tmp;
+ quint64 tmp;
asm ("xchg %%rbx, %1\n"
"cpuid\n"
"xchg %%rbx, %1\n"