From 2c985e8048110fa0ba8ca36c015929d77545a254 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 21 Jan 2014 08:27:46 -0800 Subject: Use qregister(u)int in qsimd.cpp x86 code This way, the same codebase works for x86, x86-64 LP64 and x86-64 ILP32 (a.k.a. x32). Task-number: QTBUG-35463 Change-Id: Iffcecc6a4c03267fb64e287c2d6226d078d7d115 Reviewed-by: hjk Reviewed-by: Thiago Macieira --- src/corelib/tools/qsimd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/corelib/tools/qsimd.cpp b/src/corelib/tools/qsimd.cpp index bf801cfb13..2d679e036e 100644 --- a/src/corelib/tools/qsimd.cpp +++ b/src/corelib/tools/qsimd.cpp @@ -157,7 +157,7 @@ static inline uint detectProcessorFeatures() static int maxBasicCpuidSupported() { #if defined(Q_CC_GNU) - qintptr tmp1; + qregisterint tmp1; # if Q_PROCESSOR_X86 < 5 // check if the CPUID instruction is supported @@ -198,7 +198,7 @@ static int maxBasicCpuidSupported() static void cpuidFeatures01(uint &ecx, uint &edx) { #if defined(Q_CC_GNU) - qintptr tmp1; + qregisterint tmp1; asm ("xchg " PICreg", %2\n" "cpuid\n" "xchg " PICreg", %2\n" @@ -219,7 +219,7 @@ inline void __cpuidex(int info[4], int, __int64) { memset(info, 0, 4*sizeof(int) static void cpuidFeatures07_00(uint &ebx) { #if defined(Q_CC_GNU) - quintptr rbx; // in case it's 64-bit + qregisteruint rbx; // in case it's 64-bit asm ("xchg " PICreg", %0\n" "cpuid\n" "xchg " PICreg", %0\n" -- cgit v1.2.3