Rename util/Prefetch.h to platform/Memory.h (#23320)

This commit is contained in:
Aaron van Geffen 2024-12-04 20:16:56 +01:00 committed by GitHub
parent a18268be93
commit 0cb81e4dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -396,6 +396,7 @@
<ClInclude Include="peep\RideUseSystem.h" />
<ClInclude Include="PlatformEnvironment.h" />
<ClInclude Include="platform\Crash.h" />
<ClInclude Include="platform\Memory.h" />
<ClInclude Include="platform\Platform.h" />
<ClInclude Include="profiling\Profiling.h" />
<ClInclude Include="profiling\ProfilingMacros.hpp" />
@ -598,7 +599,6 @@
<ClInclude Include="ui\UiContext.h" />
<ClInclude Include="ui\WindowManager.h" />
<ClInclude Include="util\Math.hpp" />
<ClInclude Include="util\Prefetch.h" />
<ClInclude Include="util\Util.h" />
<ClInclude Include="Version.h" />
<ClInclude Include="windows\Intent.h" />

View file

@ -19,9 +19,9 @@
#include "../localisation/Formatting.h"
#include "../localisation/LocalisationService.h"
#include "../paint/Painter.h"
#include "../platform/Memory.h"
#include "../profiling/Profiling.h"
#include "../util/Math.hpp"
#include "../util/Prefetch.h"
#include "Boundbox.h"
#include "Paint.Entity.h"
#include "tile_element/Paint.TileElement.h"

View file

@ -7,6 +7,8 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#if defined(__amd64__) || defined(_M_AMD64) || defined(__i386__) || defined(_M_IX86)
// Don't bother checking for CPUID, prefetch is available since Pentium 4
#include <xmmintrin.h>