Amr64 on mac impl progress
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
#define PLATFORM_ARCH_ARM64 1
|
#define PLATFORM_ARCH_ARM64 1
|
||||||
#define PLATFORM_ARCH ArchitectureType::ARM64
|
#define PLATFORM_ARCH ArchitectureType::ARM64
|
||||||
#else
|
#else
|
||||||
sss;
|
|
||||||
#define PLATFORM_64BITS 1
|
#define PLATFORM_64BITS 1
|
||||||
#define PLATFORM_ARCH_X64 1
|
#define PLATFORM_ARCH_X64 1
|
||||||
#define PLATFORM_ARCH ArchitectureType::x64
|
#define PLATFORM_ARCH ArchitectureType::x64
|
||||||
|
|||||||
@@ -44,15 +44,11 @@ public:
|
|||||||
}
|
}
|
||||||
FORCE_INLINE static int32 AtomicRead(int32 volatile* dst)
|
FORCE_INLINE static int32 AtomicRead(int32 volatile* dst)
|
||||||
{
|
{
|
||||||
int32 result;
|
return __atomic_load_n(dst, __ATOMIC_SEQ_CST);
|
||||||
__atomic_load(dst, &result, __ATOMIC_SEQ_CST);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
FORCE_INLINE static int64 AtomicRead(int64 volatile* dst)
|
FORCE_INLINE static int64 AtomicRead(int64 volatile* dst)
|
||||||
{
|
{
|
||||||
int64 result;
|
return __atomic_load_n(dst, __ATOMIC_SEQ_CST);
|
||||||
__atomic_load(dst, &result, __ATOMIC_SEQ_CST);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
FORCE_INLINE static void AtomicStore(int32 volatile* dst, int32 value)
|
FORCE_INLINE static void AtomicStore(int32 volatile* dst, int32 value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ namespace Flax.Build
|
|||||||
Architectures = new[]
|
Architectures = new[]
|
||||||
{
|
{
|
||||||
TargetArchitecture.x64,
|
TargetArchitecture.x64,
|
||||||
|
TargetArchitecture.ARM64,
|
||||||
};
|
};
|
||||||
ConfigurationName = "Editor";
|
ConfigurationName = "Editor";
|
||||||
GlobalDefinitions.Add("USE_EDITOR");
|
GlobalDefinitions.Add("USE_EDITOR");
|
||||||
|
|||||||
Reference in New Issue
Block a user