mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
rename NETGEN_ARCH_ARM to NETGEN_ARCH_ARM64
This commit is contained in:
parent
50f3ca429c
commit
c53675edac
@ -72,7 +72,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(__arm64__) || defined(_M_ARM64)
|
||||
#define NETGEN_ARCH_ARM
|
||||
#define NETGEN_ARCH_ARM64
|
||||
#endif
|
||||
|
||||
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#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>
|
||||
#endif
|
||||
|
||||
@ -58,11 +58,11 @@ namespace ngcore
|
||||
|
||||
inline TTimePoint GetTimeCounter() noexcept
|
||||
{
|
||||
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM)
|
||||
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64)
|
||||
return mach_absolute_time();
|
||||
#elif defined(NETGEN_ARCH_AMD64)
|
||||
return __rdtsc();
|
||||
#elif defined(NETGEN_ARCH_ARM)
|
||||
#elif defined(NETGEN_ARCH_ARM64)
|
||||
return __builtin_readcyclecounter();
|
||||
#else
|
||||
#warning "Unsupported CPU architecture"
|
||||
|
Loading…
Reference in New Issue
Block a user