Index: ps/trunk/source/lib/sysdep/arch/x86_x64/x86_x64.cpp =================================================================== --- ps/trunk/source/lib/sysdep/arch/x86_x64/x86_x64.cpp +++ ps/trunk/source/lib/sysdep/arch/x86_x64/x86_x64.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 Wildfire Games. +/* Copyright (C) 2021 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -49,20 +49,10 @@ #if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 150030729 // VC10+ and VC9 SP1: __cpuidex is already available #elif GCC_VERSION -# if defined(__i386__) && defined(__PIC__) -# define __cpuidex(regsArray, level, index)\ - __asm__ __volatile__ ("pushl %%ebx\n"\ - "cpuid\n"\ - "mov %%ebx,%1\n"\ - "popl %%ebx"\ - : "=a" ((regsArray)[0]), "=r" ((regsArray)[1]), "=c" ((regsArray)[2]), "=d" ((regsArray)[3])\ - : "0" (level), "2" (index)); -# else # define __cpuidex(regsArray, level, index)\ __asm__ __volatile__ ("cpuid"\ : "=a" ((regsArray)[0]), "=b" ((regsArray)[1]), "=c" ((regsArray)[2]), "=d" ((regsArray)[3])\ : "0" (level), "2" (index)); -# endif #else # error "compiler not supported" #endif