Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump Externals/AGS_SDK from dbeff30 to 7d2d1a2 #3

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Externals/AGS_SDK
Submodule AGS_SDK updated 129 files
4 changes: 2 additions & 2 deletions src/xrCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ set(SRC_FILES
"_color.h"
"_compressed_normal.cpp"
"_compressed_normal.h"
"cpuid.cpp"
"cpuid.h"
"crc32.cpp"
"_cylinder.h"
"dump_string.cpp"
Expand Down Expand Up @@ -91,6 +89,8 @@ set(SRC_FILES
"xrDebug.cpp"
"xrDebug.h"
"xrDebug_macros.h"
"xr_cpuid.cpp"
"xr_cpuid.h"
"xr_ini.cpp"
"xr_ini.h"
"xrMemory.cpp"
Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/_math.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "_types.h"
#include "cpuid.h"
#include "xr_cpuid.h"

namespace FPU
{
Expand Down
4 changes: 2 additions & 2 deletions src/xrCore/xrCore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ call .GitInfo.cmd</Command>
<ClCompile Include="Compression\ppmd_compressor.cpp" />
<ClCompile Include="Compression\rt_compressor.cpp" />
<ClCompile Include="Compression\rt_compressor9.cpp" />
<ClCompile Include="cpuid.cpp" />
<ClCompile Include="xr_cpuid.cpp" />
<ClCompile Include="crc32.cpp" />
<ClCompile Include="Crypto\trivial_encryptor.cpp" />
<ClCompile Include="Crypto\xr_dsa.cpp" />
Expand Down Expand Up @@ -152,7 +152,7 @@ call .GitInfo.cmd</Command>
<ClInclude Include="Containers\AssociativeVector.hpp" />
<ClInclude Include="Containers\AssociativeVectorComparer.hpp" />
<ClInclude Include="Containers\FixedMap.h" />
<ClInclude Include="cpuid.h" />
<ClInclude Include="xr_cpuid.h" />
<ClInclude Include="Crypto\trivial_encryptor.h" />
<ClInclude Include="Crypto\xr_dsa.h" />
<ClInclude Include="Crypto\xr_dsa_signer.h" />
Expand Down
4 changes: 2 additions & 2 deletions src/xrCore/xrCore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<ClCompile Include="dump_string.cpp">
<Filter>Math</Filter>
</ClCompile>
<ClCompile Include="cpuid.cpp">
<ClCompile Include="xr_cpuid.cpp">
<Filter>Math\CPU</Filter>
</ClCompile>
<ClCompile Include="_std_extensions.cpp">
Expand Down Expand Up @@ -431,7 +431,7 @@
<ClInclude Include="vector.h">
<Filter>Math</Filter>
</ClInclude>
<ClInclude Include="cpuid.h">
<ClInclude Include="xr_cpuid.h">
<Filter>Math\CPU</Filter>
</ClInclude>
<ClInclude Include="FixedVector.h">
Expand Down
10 changes: 7 additions & 3 deletions src/xrCore/cpuid.cpp → src/xrCore/xr_cpuid.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#include "stdafx.h"
#pragma hdrstop

#include "cpuid.h"
#if (defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD)) && defined(XR_COMPILER_GCC)
#include <cpuid.h>
#endif

#include "xr_cpuid.h"

#include <array>
#include <bitset>
Expand All @@ -25,8 +29,8 @@ void nativeCpuId(int regs[4], int i)
{
#ifdef XR_PLATFORM_WINDOWS
__cpuid((int *)regs, (int)i);
#elif (defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD)) && defined(GCC)
__cpuid((int)i, (int *)regs);
#elif (defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD)) && defined(XR_COMPILER_GCC)
__cpuid((int)i, regs[0], regs[1], regs[2], regs[3]);
#elif defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD)
#if defined(XR_ARCHITECTURE_X86) || defined(XR_ARCHITECTURE_X64)
asm volatile("cpuid" :
Expand Down
File renamed without changes.