rename NETGEN_ARCH_ARM to NETGEN_ARCH_ARM64

This commit is contained in:
Matthias Hochsteger 2020-12-09 09:59:13 +01:00
parent 50f3ca429c
commit c53675edac
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@
#endif #endif
#if defined(__arm64__) || defined(_M_ARM64) #if defined(__arm64__) || defined(_M_ARM64)
#define NETGEN_ARCH_ARM #define NETGEN_ARCH_ARM64
#endif #endif
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED

View File

@ -10,7 +10,7 @@
#include "ngcore_api.hpp" // for NGCORE_API and CPU arch macros #include "ngcore_api.hpp" // for NGCORE_API and CPU arch macros
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM) #if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64)
#include <mach/mach_time.h> #include <mach/mach_time.h>
#endif #endif
@ -58,11 +58,11 @@ namespace ngcore
inline TTimePoint GetTimeCounter() noexcept inline TTimePoint GetTimeCounter() noexcept
{ {
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM) #if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64)
return mach_absolute_time(); return mach_absolute_time();
#elif defined(NETGEN_ARCH_AMD64) #elif defined(NETGEN_ARCH_AMD64)
return __rdtsc(); return __rdtsc();
#elif defined(NETGEN_ARCH_ARM) #elif defined(NETGEN_ARCH_ARM64)
return __builtin_readcyclecounter(); return __builtin_readcyclecounter();
#else #else
#warning "Unsupported CPU architecture" #warning "Unsupported CPU architecture"