Set Mac ARM cache line size to 128 to cater for Apple M1/M2

#jira none
#rb josh.adams
#preflight 63c0049c8f4acc7b54ce4b0e

[CL 23675457 by Johan Torp in ue5-main branch]
This commit is contained in:
Johan Torp
2023-01-13 04:20:46 -05:00
parent ea547321db
commit cc864b00b3

View File

@@ -127,6 +127,12 @@ typedef FMacPlatformTypes FPlatformTypes;
#define OPERATOR_NEW_NOTHROW_SPEC _NOEXCEPT
#define OPERATOR_DELETE_NOTHROW_SPEC _NOEXCEPT
#ifdef PLATFORM_MAC_ARM64
#define PLATFORM_CACHE_LINE_SIZE 128
#else
#define PLATFORM_CACHE_LINE_SIZE 64
#endif
// DLL export and import definitions
#define DLLEXPORT __attribute__((visibility("default")))
#define DLLIMPORT __attribute__((visibility("default")))