tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
cycle_counter.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4
15#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
16#pragma message "[COMPILE-TIME] Using x86 cycle counter"
17#include "cycle_counter_x86.h"
19
20#elif defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(_M_ARM)
21#pragma message "[COMPILE-TIME] Using ARM cycle counter"
22#include "cycle_counter_arm.h"
24
25#else
26#pragma message "[COMPILE-TIME] Using generic cycle counter (fallback)"
29#endif
Global configuration for the tesseract tensor library.
Cycle counter using the ARM generic timer (CNTVCT_EL0).
No-op cycle counter fallback for unsupported platforms.
Cycle counter using x86 RDTSC with LFENCE serialization.
Hardware cycle counter for AArch64/ARM.
Definition cycle_counter_arm.h:19
Stub cycle counter for platforms without hardware timer access.
Definition cycle_counter_generic.h:18
Hardware cycle counter for x86/x86_64.
Definition cycle_counter_x86.h:21