Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
timer_convert.c File Reference

Data Structures

struct  test_rec
 

Macros

#define NUM_RANDOM   100
 
#define TESTREC(src, dst, round, prec)
 
#define TESTVAR(src, dst, round, prec)
 
#define TESTFUNC(src, dst, round, prec)
 

Enumerations

enum  units {
  UNIT_ticks , UNIT_cyc , UNIT_ms , UNIT_us ,
  UNIT_ns
}
 
enum  round { ROUND_floor , ROUND_ceil , ROUND_near }
 

Functions

static uint32_t test_ms_to_cyc_floor32 (uint32_t t)
 
static uint64_t test_ms_to_cyc_floor64 (uint64_t t)
 
static uint32_t test_ms_to_cyc_near32 (uint32_t t)
 
static uint64_t test_ms_to_cyc_near64 (uint64_t t)
 
static uint32_t test_ms_to_cyc_ceil32 (uint32_t t)
 
static uint64_t test_ms_to_cyc_ceil64 (uint64_t t)
 
static uint32_t test_ms_to_ticks_floor32 (uint32_t t)
 
static uint64_t test_ms_to_ticks_floor64 (uint64_t t)
 
static uint32_t test_ms_to_ticks_near32 (uint32_t t)
 
static uint64_t test_ms_to_ticks_near64 (uint64_t t)
 
static uint32_t test_ms_to_ticks_ceil32 (uint32_t t)
 
static uint64_t test_ms_to_ticks_ceil64 (uint64_t t)
 
static uint32_t test_us_to_cyc_floor32 (uint32_t t)
 
static uint64_t test_us_to_cyc_floor64 (uint64_t t)
 
static uint32_t test_us_to_cyc_near32 (uint32_t t)
 
static uint64_t test_us_to_cyc_near64 (uint64_t t)
 
static uint32_t test_us_to_cyc_ceil32 (uint32_t t)
 
static uint64_t test_us_to_cyc_ceil64 (uint64_t t)
 
static uint32_t test_us_to_ticks_floor32 (uint32_t t)
 
static uint64_t test_us_to_ticks_floor64 (uint64_t t)
 
static uint32_t test_us_to_ticks_near32 (uint32_t t)
 
static uint64_t test_us_to_ticks_near64 (uint64_t t)
 
static uint32_t test_us_to_ticks_ceil32 (uint32_t t)
 
static uint64_t test_us_to_ticks_ceil64 (uint64_t t)
 
static uint32_t test_cyc_to_ms_floor32 (uint32_t t)
 
static uint64_t test_cyc_to_ms_floor64 (uint64_t t)
 
static uint32_t test_cyc_to_ms_near32 (uint32_t t)
 
static uint64_t test_cyc_to_ms_near64 (uint64_t t)
 
static uint32_t test_cyc_to_ms_ceil32 (uint32_t t)
 
static uint64_t test_cyc_to_ms_ceil64 (uint64_t t)
 
static uint32_t test_cyc_to_us_floor32 (uint32_t t)
 
static uint64_t test_cyc_to_us_floor64 (uint64_t t)
 
static uint32_t test_cyc_to_us_near32 (uint32_t t)
 
static uint64_t test_cyc_to_us_near64 (uint64_t t)
 
static uint32_t test_cyc_to_us_ceil32 (uint32_t t)
 
static uint64_t test_cyc_to_us_ceil64 (uint64_t t)
 
static uint32_t test_cyc_to_ticks_floor32 (uint32_t t)
 
static uint64_t test_cyc_to_ticks_floor64 (uint64_t t)
 
static uint32_t test_cyc_to_ticks_near32 (uint32_t t)
 
static uint64_t test_cyc_to_ticks_near64 (uint64_t t)
 
static uint32_t test_cyc_to_ticks_ceil32 (uint32_t t)
 
static uint64_t test_cyc_to_ticks_ceil64 (uint64_t t)
 
static uint32_t test_ticks_to_ms_floor32 (uint32_t t)
 
static uint64_t test_ticks_to_ms_floor64 (uint64_t t)
 
static uint32_t test_ticks_to_ms_near32 (uint32_t t)
 
static uint64_t test_ticks_to_ms_near64 (uint64_t t)
 
static uint32_t test_ticks_to_ms_ceil32 (uint32_t t)
 
static uint64_t test_ticks_to_ms_ceil64 (uint64_t t)
 
static uint32_t test_ticks_to_us_floor32 (uint32_t t)
 
static uint64_t test_ticks_to_us_floor64 (uint64_t t)
 
static uint32_t test_ticks_to_us_near32 (uint32_t t)
 
static uint64_t test_ticks_to_us_near64 (uint64_t t)
 
static uint32_t test_ticks_to_us_ceil32 (uint32_t t)
 
static uint64_t test_ticks_to_us_ceil64 (uint64_t t)
 
static uint32_t test_ticks_to_cyc_floor32 (uint32_t t)
 
static uint64_t test_ticks_to_cyc_floor64 (uint64_t t)
 
static uint32_t test_ticks_to_cyc_near32 (uint32_t t)
 
static uint64_t test_ticks_to_cyc_near64 (uint64_t t)
 
static uint32_t test_ticks_to_cyc_ceil32 (uint32_t t)
 
static uint64_t test_ticks_to_cyc_ceil64 (uint64_t t)
 
static uint32_t test_ns_to_cyc_floor32 (uint32_t t)
 
static uint64_t test_ns_to_cyc_floor64 (uint64_t t)
 
static uint32_t test_ns_to_cyc_near32 (uint32_t t)
 
static uint64_t test_ns_to_cyc_near64 (uint64_t t)
 
static uint32_t test_ns_to_cyc_ceil32 (uint32_t t)
 
static uint64_t test_ns_to_cyc_ceil64 (uint64_t t)
 
static uint32_t test_ns_to_ticks_floor32 (uint32_t t)
 
static uint64_t test_ns_to_ticks_floor64 (uint64_t t)
 
static uint32_t test_ns_to_ticks_near32 (uint32_t t)
 
static uint64_t test_ns_to_ticks_near64 (uint64_t t)
 
static uint32_t test_ns_to_ticks_ceil32 (uint32_t t)
 
static uint64_t test_ns_to_ticks_ceil64 (uint64_t t)
 
static uint32_t test_cyc_to_ns_floor32 (uint32_t t)
 
static uint64_t test_cyc_to_ns_floor64 (uint64_t t)
 
static uint32_t test_cyc_to_ns_near32 (uint32_t t)
 
static uint64_t test_cyc_to_ns_near64 (uint64_t t)
 
static uint32_t test_cyc_to_ns_ceil32 (uint32_t t)
 
static uint64_t test_cyc_to_ns_ceil64 (uint64_t t)
 
static uint32_t test_ticks_to_ns_floor32 (uint32_t t)
 
static uint64_t test_ticks_to_ns_floor64 (uint64_t t)
 
static uint32_t test_ticks_to_ns_near32 (uint32_t t)
 
static uint64_t test_ticks_to_ns_near64 (uint64_t t)
 
static uint32_t test_ticks_to_ns_ceil32 (uint32_t t)
 
static uint64_t test_ticks_to_ns_ceil64 (uint64_t t)
 
uint32_t get_hz (enum units u)
 
static void test_conversion (struct test_rec *t, uint64_t val)
 
 ZTEST (timer_api, test_time_conversions)
 

Variables

static const char *const round_s []
 
uint32_t test_ms_to_cyc_floor32_val = k_ms_to_cyc_floor32 (42)
 
uint64_t test_ms_to_cyc_floor64_val = k_ms_to_cyc_floor64 (42)
 
uint32_t test_ms_to_cyc_near32_val = k_ms_to_cyc_near32 (42)
 
uint64_t test_ms_to_cyc_near64_val = k_ms_to_cyc_near64 (42)
 
uint32_t test_ms_to_cyc_ceil32_val = k_ms_to_cyc_ceil32 (42)
 
uint64_t test_ms_to_cyc_ceil64_val = k_ms_to_cyc_ceil64 (42)
 
uint32_t test_ms_to_ticks_floor32_val = k_ms_to_ticks_floor32 (42)
 
uint64_t test_ms_to_ticks_floor64_val = k_ms_to_ticks_floor64 (42)
 
uint32_t test_ms_to_ticks_near32_val = k_ms_to_ticks_near32 (42)
 
uint64_t test_ms_to_ticks_near64_val = k_ms_to_ticks_near64 (42)
 
uint32_t test_ms_to_ticks_ceil32_val = k_ms_to_ticks_ceil32 (42)
 
uint64_t test_ms_to_ticks_ceil64_val = k_ms_to_ticks_ceil64 (42)
 
uint32_t test_us_to_cyc_floor32_val = k_us_to_cyc_floor32 (42)
 
uint64_t test_us_to_cyc_floor64_val = k_us_to_cyc_floor64 (42)
 
uint32_t test_us_to_cyc_near32_val = k_us_to_cyc_near32 (42)
 
uint64_t test_us_to_cyc_near64_val = k_us_to_cyc_near64 (42)
 
uint32_t test_us_to_cyc_ceil32_val = k_us_to_cyc_ceil32 (42)
 
uint64_t test_us_to_cyc_ceil64_val = k_us_to_cyc_ceil64 (42)
 
uint32_t test_us_to_ticks_floor32_val = k_us_to_ticks_floor32 (42)
 
uint64_t test_us_to_ticks_floor64_val = k_us_to_ticks_floor64 (42)
 
uint32_t test_us_to_ticks_near32_val = k_us_to_ticks_near32 (42)
 
uint64_t test_us_to_ticks_near64_val = k_us_to_ticks_near64 (42)
 
uint32_t test_us_to_ticks_ceil32_val = k_us_to_ticks_ceil32 (42)
 
uint64_t test_us_to_ticks_ceil64_val = k_us_to_ticks_ceil64 (42)
 
uint32_t test_cyc_to_ms_floor32_val = k_cyc_to_ms_floor32 (42)
 
uint64_t test_cyc_to_ms_floor64_val = k_cyc_to_ms_floor64 (42)
 
uint32_t test_cyc_to_ms_near32_val = k_cyc_to_ms_near32 (42)
 
uint64_t test_cyc_to_ms_near64_val = k_cyc_to_ms_near64 (42)
 
uint32_t test_cyc_to_ms_ceil32_val = k_cyc_to_ms_ceil32 (42)
 
uint64_t test_cyc_to_ms_ceil64_val = k_cyc_to_ms_ceil64 (42)
 
uint32_t test_cyc_to_us_floor32_val = k_cyc_to_us_floor32 (42)
 
uint64_t test_cyc_to_us_floor64_val = k_cyc_to_us_floor64 (42)
 
uint32_t test_cyc_to_us_near32_val = k_cyc_to_us_near32 (42)
 
uint64_t test_cyc_to_us_near64_val = k_cyc_to_us_near64 (42)
 
uint32_t test_cyc_to_us_ceil32_val = k_cyc_to_us_ceil32 (42)
 
uint64_t test_cyc_to_us_ceil64_val = k_cyc_to_us_ceil64 (42)
 
uint32_t test_cyc_to_ticks_floor32_val = k_cyc_to_ticks_floor32 (42)
 
uint64_t test_cyc_to_ticks_floor64_val = k_cyc_to_ticks_floor64 (42)
 
uint32_t test_cyc_to_ticks_near32_val = k_cyc_to_ticks_near32 (42)
 
uint64_t test_cyc_to_ticks_near64_val = k_cyc_to_ticks_near64 (42)
 
uint32_t test_cyc_to_ticks_ceil32_val = k_cyc_to_ticks_ceil32 (42)
 
uint64_t test_cyc_to_ticks_ceil64_val = k_cyc_to_ticks_ceil64 (42)
 
uint32_t test_ticks_to_ms_floor32_val = k_ticks_to_ms_floor32 (42)
 
uint64_t test_ticks_to_ms_floor64_val = k_ticks_to_ms_floor64 (42)
 
uint32_t test_ticks_to_ms_near32_val = k_ticks_to_ms_near32 (42)
 
uint64_t test_ticks_to_ms_near64_val = k_ticks_to_ms_near64 (42)
 
uint32_t test_ticks_to_ms_ceil32_val = k_ticks_to_ms_ceil32 (42)
 
uint64_t test_ticks_to_ms_ceil64_val = k_ticks_to_ms_ceil64 (42)
 
uint32_t test_ticks_to_us_floor32_val = k_ticks_to_us_floor32 (42)
 
uint64_t test_ticks_to_us_floor64_val = k_ticks_to_us_floor64 (42)
 
uint32_t test_ticks_to_us_near32_val = k_ticks_to_us_near32 (42)
 
uint64_t test_ticks_to_us_near64_val = k_ticks_to_us_near64 (42)
 
uint32_t test_ticks_to_us_ceil32_val = k_ticks_to_us_ceil32 (42)
 
uint64_t test_ticks_to_us_ceil64_val = k_ticks_to_us_ceil64 (42)
 
uint32_t test_ticks_to_cyc_floor32_val = k_ticks_to_cyc_floor32 (42)
 
uint64_t test_ticks_to_cyc_floor64_val = k_ticks_to_cyc_floor64 (42)
 
uint32_t test_ticks_to_cyc_near32_val = k_ticks_to_cyc_near32 (42)
 
uint64_t test_ticks_to_cyc_near64_val = k_ticks_to_cyc_near64 (42)
 
uint32_t test_ticks_to_cyc_ceil32_val = k_ticks_to_cyc_ceil32 (42)
 
uint64_t test_ticks_to_cyc_ceil64_val = k_ticks_to_cyc_ceil64 (42)
 
uint32_t test_ns_to_cyc_floor32_val = k_ns_to_cyc_floor32 (42)
 
uint64_t test_ns_to_cyc_floor64_val = k_ns_to_cyc_floor64 (42)
 
uint32_t test_ns_to_cyc_near32_val = k_ns_to_cyc_near32 (42)
 
uint64_t test_ns_to_cyc_near64_val = k_ns_to_cyc_near64 (42)
 
uint32_t test_ns_to_cyc_ceil32_val = k_ns_to_cyc_ceil32 (42)
 
uint64_t test_ns_to_cyc_ceil64_val = k_ns_to_cyc_ceil64 (42)
 
uint32_t test_ns_to_ticks_floor32_val = k_ns_to_ticks_floor32 (42)
 
uint64_t test_ns_to_ticks_floor64_val = k_ns_to_ticks_floor64 (42)
 
uint32_t test_ns_to_ticks_near32_val = k_ns_to_ticks_near32 (42)
 
uint64_t test_ns_to_ticks_near64_val = k_ns_to_ticks_near64 (42)
 
uint32_t test_ns_to_ticks_ceil32_val = k_ns_to_ticks_ceil32 (42)
 
uint64_t test_ns_to_ticks_ceil64_val = k_ns_to_ticks_ceil64 (42)
 
uint32_t test_cyc_to_ns_floor32_val = k_cyc_to_ns_floor32 (42)
 
uint64_t test_cyc_to_ns_floor64_val = k_cyc_to_ns_floor64 (42)
 
uint32_t test_cyc_to_ns_near32_val = k_cyc_to_ns_near32 (42)
 
uint64_t test_cyc_to_ns_near64_val = k_cyc_to_ns_near64 (42)
 
uint32_t test_cyc_to_ns_ceil32_val = k_cyc_to_ns_ceil32 (42)
 
uint64_t test_cyc_to_ns_ceil64_val = k_cyc_to_ns_ceil64 (42)
 
uint32_t test_ticks_to_ns_floor32_val = k_ticks_to_ns_floor32 (42)
 
uint64_t test_ticks_to_ns_floor64_val = k_ticks_to_ns_floor64 (42)
 
uint32_t test_ticks_to_ns_near32_val = k_ticks_to_ns_near32 (42)
 
uint64_t test_ticks_to_ns_near64_val = k_ticks_to_ns_near64 (42)
 
uint32_t test_ticks_to_ns_ceil32_val = k_ticks_to_ns_ceil32 (42)
 
uint64_t test_ticks_to_ns_ceil64_val = k_ticks_to_ns_ceil64 (42)
 
static struct test_rec tests []
 

Macro Definition Documentation

◆ NUM_RANDOM

#define NUM_RANDOM   100

◆ TESTFUNC

#define TESTFUNC (   src,
  dst,
  round,
  prec 
)
Value:
TESTVAR(src, dst, round, prec) \
static uint##prec##_t test_##src##_to_##dst##_##round##prec(uint##prec##_t t) { \
return k_##src##_to_##dst##_##round##prec(t); \
}
struct k_thread t
Definition kobject.c:1324
round
Definition timer_convert.c:15
#define TESTVAR(src, dst, round, prec)
Definition timer_convert.c:39

◆ TESTREC

#define TESTREC (   src,
  dst,
  round,
  prec 
)
Value:
{ \
UNIT_##src, UNIT_##dst, prec, ROUND_##round, \
(void *)test_##src##_to_##dst##_##round##prec \
} \

◆ TESTVAR

#define TESTVAR (   src,
  dst,
  round,
  prec 
)
Value:
uint##prec##_t test_##src##_to_##dst##_##round##prec##_val = \
k_##src##_to_##dst##_##round##prec(42);

Enumeration Type Documentation

◆ round

enum round
Enumerator
ROUND_floor 
ROUND_ceil 
ROUND_near 

◆ units

enum units
Enumerator
UNIT_ticks 
UNIT_cyc 
UNIT_ms 
UNIT_us 
UNIT_ns 

Function Documentation

◆ get_hz()

uint32_t get_hz ( enum units  u)

◆ test_conversion()

static void test_conversion ( struct test_rec t,
uint64_t  val 
)
static

◆ test_cyc_to_ms_ceil32()

static uint32_t test_cyc_to_ms_ceil32 ( uint32_t  t)
static

◆ test_cyc_to_ms_ceil64()

static uint64_t test_cyc_to_ms_ceil64 ( uint64_t  t)
static

◆ test_cyc_to_ms_floor32()

static uint32_t test_cyc_to_ms_floor32 ( uint32_t  t)
static

◆ test_cyc_to_ms_floor64()

static uint64_t test_cyc_to_ms_floor64 ( uint64_t  t)
static

◆ test_cyc_to_ms_near32()

static uint32_t test_cyc_to_ms_near32 ( uint32_t  t)
static

◆ test_cyc_to_ms_near64()

static uint64_t test_cyc_to_ms_near64 ( uint64_t  t)
static

◆ test_cyc_to_ns_ceil32()

static uint32_t test_cyc_to_ns_ceil32 ( uint32_t  t)
static

◆ test_cyc_to_ns_ceil64()

static uint64_t test_cyc_to_ns_ceil64 ( uint64_t  t)
static

◆ test_cyc_to_ns_floor32()

static uint32_t test_cyc_to_ns_floor32 ( uint32_t  t)
static

◆ test_cyc_to_ns_floor64()

static uint64_t test_cyc_to_ns_floor64 ( uint64_t  t)
static

◆ test_cyc_to_ns_near32()

static uint32_t test_cyc_to_ns_near32 ( uint32_t  t)
static

◆ test_cyc_to_ns_near64()

static uint64_t test_cyc_to_ns_near64 ( uint64_t  t)
static

◆ test_cyc_to_ticks_ceil32()

static uint32_t test_cyc_to_ticks_ceil32 ( uint32_t  t)
static

◆ test_cyc_to_ticks_ceil64()

static uint64_t test_cyc_to_ticks_ceil64 ( uint64_t  t)
static

◆ test_cyc_to_ticks_floor32()

static uint32_t test_cyc_to_ticks_floor32 ( uint32_t  t)
static

◆ test_cyc_to_ticks_floor64()

static uint64_t test_cyc_to_ticks_floor64 ( uint64_t  t)
static

◆ test_cyc_to_ticks_near32()

static uint32_t test_cyc_to_ticks_near32 ( uint32_t  t)
static

◆ test_cyc_to_ticks_near64()

static uint64_t test_cyc_to_ticks_near64 ( uint64_t  t)
static

◆ test_cyc_to_us_ceil32()

static uint32_t test_cyc_to_us_ceil32 ( uint32_t  t)
static

◆ test_cyc_to_us_ceil64()

static uint64_t test_cyc_to_us_ceil64 ( uint64_t  t)
static

◆ test_cyc_to_us_floor32()

static uint32_t test_cyc_to_us_floor32 ( uint32_t  t)
static

◆ test_cyc_to_us_floor64()

static uint64_t test_cyc_to_us_floor64 ( uint64_t  t)
static

◆ test_cyc_to_us_near32()

static uint32_t test_cyc_to_us_near32 ( uint32_t  t)
static

◆ test_cyc_to_us_near64()

static uint64_t test_cyc_to_us_near64 ( uint64_t  t)
static

◆ test_ms_to_cyc_ceil32()

static uint32_t test_ms_to_cyc_ceil32 ( uint32_t  t)
static

◆ test_ms_to_cyc_ceil64()

static uint64_t test_ms_to_cyc_ceil64 ( uint64_t  t)
static

◆ test_ms_to_cyc_floor32()

static uint32_t test_ms_to_cyc_floor32 ( uint32_t  t)
static

◆ test_ms_to_cyc_floor64()

static uint64_t test_ms_to_cyc_floor64 ( uint64_t  t)
static

◆ test_ms_to_cyc_near32()

static uint32_t test_ms_to_cyc_near32 ( uint32_t  t)
static

◆ test_ms_to_cyc_near64()

static uint64_t test_ms_to_cyc_near64 ( uint64_t  t)
static

◆ test_ms_to_ticks_ceil32()

static uint32_t test_ms_to_ticks_ceil32 ( uint32_t  t)
static

◆ test_ms_to_ticks_ceil64()

static uint64_t test_ms_to_ticks_ceil64 ( uint64_t  t)
static

◆ test_ms_to_ticks_floor32()

static uint32_t test_ms_to_ticks_floor32 ( uint32_t  t)
static

◆ test_ms_to_ticks_floor64()

static uint64_t test_ms_to_ticks_floor64 ( uint64_t  t)
static

◆ test_ms_to_ticks_near32()

static uint32_t test_ms_to_ticks_near32 ( uint32_t  t)
static

◆ test_ms_to_ticks_near64()

static uint64_t test_ms_to_ticks_near64 ( uint64_t  t)
static

◆ test_ns_to_cyc_ceil32()

static uint32_t test_ns_to_cyc_ceil32 ( uint32_t  t)
static

◆ test_ns_to_cyc_ceil64()

static uint64_t test_ns_to_cyc_ceil64 ( uint64_t  t)
static

◆ test_ns_to_cyc_floor32()

static uint32_t test_ns_to_cyc_floor32 ( uint32_t  t)
static

◆ test_ns_to_cyc_floor64()

static uint64_t test_ns_to_cyc_floor64 ( uint64_t  t)
static

◆ test_ns_to_cyc_near32()

static uint32_t test_ns_to_cyc_near32 ( uint32_t  t)
static

◆ test_ns_to_cyc_near64()

static uint64_t test_ns_to_cyc_near64 ( uint64_t  t)
static

◆ test_ns_to_ticks_ceil32()

static uint32_t test_ns_to_ticks_ceil32 ( uint32_t  t)
static

◆ test_ns_to_ticks_ceil64()

static uint64_t test_ns_to_ticks_ceil64 ( uint64_t  t)
static

◆ test_ns_to_ticks_floor32()

static uint32_t test_ns_to_ticks_floor32 ( uint32_t  t)
static

◆ test_ns_to_ticks_floor64()

static uint64_t test_ns_to_ticks_floor64 ( uint64_t  t)
static

◆ test_ns_to_ticks_near32()

static uint32_t test_ns_to_ticks_near32 ( uint32_t  t)
static

◆ test_ns_to_ticks_near64()

static uint64_t test_ns_to_ticks_near64 ( uint64_t  t)
static

◆ test_ticks_to_cyc_ceil32()

static uint32_t test_ticks_to_cyc_ceil32 ( uint32_t  t)
static

◆ test_ticks_to_cyc_ceil64()

static uint64_t test_ticks_to_cyc_ceil64 ( uint64_t  t)
static

◆ test_ticks_to_cyc_floor32()

static uint32_t test_ticks_to_cyc_floor32 ( uint32_t  t)
static

◆ test_ticks_to_cyc_floor64()

static uint64_t test_ticks_to_cyc_floor64 ( uint64_t  t)
static

◆ test_ticks_to_cyc_near32()

static uint32_t test_ticks_to_cyc_near32 ( uint32_t  t)
static

◆ test_ticks_to_cyc_near64()

static uint64_t test_ticks_to_cyc_near64 ( uint64_t  t)
static

◆ test_ticks_to_ms_ceil32()

static uint32_t test_ticks_to_ms_ceil32 ( uint32_t  t)
static

◆ test_ticks_to_ms_ceil64()

static uint64_t test_ticks_to_ms_ceil64 ( uint64_t  t)
static

◆ test_ticks_to_ms_floor32()

static uint32_t test_ticks_to_ms_floor32 ( uint32_t  t)
static

◆ test_ticks_to_ms_floor64()

static uint64_t test_ticks_to_ms_floor64 ( uint64_t  t)
static

◆ test_ticks_to_ms_near32()

static uint32_t test_ticks_to_ms_near32 ( uint32_t  t)
static

◆ test_ticks_to_ms_near64()

static uint64_t test_ticks_to_ms_near64 ( uint64_t  t)
static

◆ test_ticks_to_ns_ceil32()

static uint32_t test_ticks_to_ns_ceil32 ( uint32_t  t)
static

◆ test_ticks_to_ns_ceil64()

static uint64_t test_ticks_to_ns_ceil64 ( uint64_t  t)
static

◆ test_ticks_to_ns_floor32()

static uint32_t test_ticks_to_ns_floor32 ( uint32_t  t)
static

◆ test_ticks_to_ns_floor64()

static uint64_t test_ticks_to_ns_floor64 ( uint64_t  t)
static

◆ test_ticks_to_ns_near32()

static uint32_t test_ticks_to_ns_near32 ( uint32_t  t)
static

◆ test_ticks_to_ns_near64()

static uint64_t test_ticks_to_ns_near64 ( uint64_t  t)
static

◆ test_ticks_to_us_ceil32()

static uint32_t test_ticks_to_us_ceil32 ( uint32_t  t)
static

◆ test_ticks_to_us_ceil64()

static uint64_t test_ticks_to_us_ceil64 ( uint64_t  t)
static

◆ test_ticks_to_us_floor32()

static uint32_t test_ticks_to_us_floor32 ( uint32_t  t)
static

◆ test_ticks_to_us_floor64()

static uint64_t test_ticks_to_us_floor64 ( uint64_t  t)
static

◆ test_ticks_to_us_near32()

static uint32_t test_ticks_to_us_near32 ( uint32_t  t)
static

◆ test_ticks_to_us_near64()

static uint64_t test_ticks_to_us_near64 ( uint64_t  t)
static

◆ test_us_to_cyc_ceil32()

static uint32_t test_us_to_cyc_ceil32 ( uint32_t  t)
static

◆ test_us_to_cyc_ceil64()

static uint64_t test_us_to_cyc_ceil64 ( uint64_t  t)
static

◆ test_us_to_cyc_floor32()

static uint32_t test_us_to_cyc_floor32 ( uint32_t  t)
static

◆ test_us_to_cyc_floor64()

static uint64_t test_us_to_cyc_floor64 ( uint64_t  t)
static

◆ test_us_to_cyc_near32()

static uint32_t test_us_to_cyc_near32 ( uint32_t  t)
static

◆ test_us_to_cyc_near64()

static uint64_t test_us_to_cyc_near64 ( uint64_t  t)
static

◆ test_us_to_ticks_ceil32()

static uint32_t test_us_to_ticks_ceil32 ( uint32_t  t)
static

◆ test_us_to_ticks_ceil64()

static uint64_t test_us_to_ticks_ceil64 ( uint64_t  t)
static

◆ test_us_to_ticks_floor32()

static uint32_t test_us_to_ticks_floor32 ( uint32_t  t)
static

◆ test_us_to_ticks_floor64()

static uint64_t test_us_to_ticks_floor64 ( uint64_t  t)
static

◆ test_us_to_ticks_near32()

static uint32_t test_us_to_ticks_near32 ( uint32_t  t)
static

◆ test_us_to_ticks_near64()

static uint64_t test_us_to_ticks_near64 ( uint64_t  t)
static

◆ ZTEST()

ZTEST ( timer_api  ,
test_time_conversions   
)

Variable Documentation

◆ round_s

const char* const round_s[]
static
Initial value:
= {
[ROUND_floor] = "floor",
[ROUND_ceil] = "ceil",
[ROUND_near] = "near",
}
@ ROUND_ceil
Definition timer_convert.c:15
@ ROUND_near
Definition timer_convert.c:15
@ ROUND_floor
Definition timer_convert.c:15

◆ test_cyc_to_ms_ceil32_val

uint32_t test_cyc_to_ms_ceil32_val = k_cyc_to_ms_ceil32 (42)

◆ test_cyc_to_ms_ceil64_val

uint64_t test_cyc_to_ms_ceil64_val = k_cyc_to_ms_ceil64 (42)

◆ test_cyc_to_ms_floor32_val

uint32_t test_cyc_to_ms_floor32_val = k_cyc_to_ms_floor32 (42)

◆ test_cyc_to_ms_floor64_val

uint64_t test_cyc_to_ms_floor64_val = k_cyc_to_ms_floor64 (42)

◆ test_cyc_to_ms_near32_val

uint32_t test_cyc_to_ms_near32_val = k_cyc_to_ms_near32 (42)

◆ test_cyc_to_ms_near64_val

uint64_t test_cyc_to_ms_near64_val = k_cyc_to_ms_near64 (42)

◆ test_cyc_to_ns_ceil32_val

uint32_t test_cyc_to_ns_ceil32_val = k_cyc_to_ns_ceil32 (42)

◆ test_cyc_to_ns_ceil64_val

uint64_t test_cyc_to_ns_ceil64_val = k_cyc_to_ns_ceil64 (42)

◆ test_cyc_to_ns_floor32_val

uint32_t test_cyc_to_ns_floor32_val = k_cyc_to_ns_floor32 (42)

◆ test_cyc_to_ns_floor64_val

uint64_t test_cyc_to_ns_floor64_val = k_cyc_to_ns_floor64 (42)

◆ test_cyc_to_ns_near32_val

uint32_t test_cyc_to_ns_near32_val = k_cyc_to_ns_near32 (42)

◆ test_cyc_to_ns_near64_val

uint64_t test_cyc_to_ns_near64_val = k_cyc_to_ns_near64 (42)

◆ test_cyc_to_ticks_ceil32_val

uint32_t test_cyc_to_ticks_ceil32_val = k_cyc_to_ticks_ceil32 (42)

◆ test_cyc_to_ticks_ceil64_val

uint64_t test_cyc_to_ticks_ceil64_val = k_cyc_to_ticks_ceil64 (42)

◆ test_cyc_to_ticks_floor32_val

uint32_t test_cyc_to_ticks_floor32_val = k_cyc_to_ticks_floor32 (42)

◆ test_cyc_to_ticks_floor64_val

uint64_t test_cyc_to_ticks_floor64_val = k_cyc_to_ticks_floor64 (42)

◆ test_cyc_to_ticks_near32_val

uint32_t test_cyc_to_ticks_near32_val = k_cyc_to_ticks_near32 (42)

◆ test_cyc_to_ticks_near64_val

uint64_t test_cyc_to_ticks_near64_val = k_cyc_to_ticks_near64 (42)

◆ test_cyc_to_us_ceil32_val

uint32_t test_cyc_to_us_ceil32_val = k_cyc_to_us_ceil32 (42)

◆ test_cyc_to_us_ceil64_val

uint64_t test_cyc_to_us_ceil64_val = k_cyc_to_us_ceil64 (42)

◆ test_cyc_to_us_floor32_val

uint32_t test_cyc_to_us_floor32_val = k_cyc_to_us_floor32 (42)

◆ test_cyc_to_us_floor64_val

uint64_t test_cyc_to_us_floor64_val = k_cyc_to_us_floor64 (42)

◆ test_cyc_to_us_near32_val

uint32_t test_cyc_to_us_near32_val = k_cyc_to_us_near32 (42)

◆ test_cyc_to_us_near64_val

uint64_t test_cyc_to_us_near64_val = k_cyc_to_us_near64 (42)

◆ test_ms_to_cyc_ceil32_val

uint32_t test_ms_to_cyc_ceil32_val = k_ms_to_cyc_ceil32 (42)

◆ test_ms_to_cyc_ceil64_val

uint64_t test_ms_to_cyc_ceil64_val = k_ms_to_cyc_ceil64 (42)

◆ test_ms_to_cyc_floor32_val

uint32_t test_ms_to_cyc_floor32_val = k_ms_to_cyc_floor32 (42)

◆ test_ms_to_cyc_floor64_val

uint64_t test_ms_to_cyc_floor64_val = k_ms_to_cyc_floor64 (42)

◆ test_ms_to_cyc_near32_val

uint32_t test_ms_to_cyc_near32_val = k_ms_to_cyc_near32 (42)

◆ test_ms_to_cyc_near64_val

uint64_t test_ms_to_cyc_near64_val = k_ms_to_cyc_near64 (42)

◆ test_ms_to_ticks_ceil32_val

uint32_t test_ms_to_ticks_ceil32_val = k_ms_to_ticks_ceil32 (42)

◆ test_ms_to_ticks_ceil64_val

uint64_t test_ms_to_ticks_ceil64_val = k_ms_to_ticks_ceil64 (42)

◆ test_ms_to_ticks_floor32_val

uint32_t test_ms_to_ticks_floor32_val = k_ms_to_ticks_floor32 (42)

◆ test_ms_to_ticks_floor64_val

uint64_t test_ms_to_ticks_floor64_val = k_ms_to_ticks_floor64 (42)

◆ test_ms_to_ticks_near32_val

uint32_t test_ms_to_ticks_near32_val = k_ms_to_ticks_near32 (42)

◆ test_ms_to_ticks_near64_val

uint64_t test_ms_to_ticks_near64_val = k_ms_to_ticks_near64 (42)

◆ test_ns_to_cyc_ceil32_val

uint32_t test_ns_to_cyc_ceil32_val = k_ns_to_cyc_ceil32 (42)

◆ test_ns_to_cyc_ceil64_val

uint64_t test_ns_to_cyc_ceil64_val = k_ns_to_cyc_ceil64 (42)

◆ test_ns_to_cyc_floor32_val

uint32_t test_ns_to_cyc_floor32_val = k_ns_to_cyc_floor32 (42)

◆ test_ns_to_cyc_floor64_val

uint64_t test_ns_to_cyc_floor64_val = k_ns_to_cyc_floor64 (42)

◆ test_ns_to_cyc_near32_val

uint32_t test_ns_to_cyc_near32_val = k_ns_to_cyc_near32 (42)

◆ test_ns_to_cyc_near64_val

uint64_t test_ns_to_cyc_near64_val = k_ns_to_cyc_near64 (42)

◆ test_ns_to_ticks_ceil32_val

uint32_t test_ns_to_ticks_ceil32_val = k_ns_to_ticks_ceil32 (42)

◆ test_ns_to_ticks_ceil64_val

uint64_t test_ns_to_ticks_ceil64_val = k_ns_to_ticks_ceil64 (42)

◆ test_ns_to_ticks_floor32_val

uint32_t test_ns_to_ticks_floor32_val = k_ns_to_ticks_floor32 (42)

◆ test_ns_to_ticks_floor64_val

uint64_t test_ns_to_ticks_floor64_val = k_ns_to_ticks_floor64 (42)

◆ test_ns_to_ticks_near32_val

uint32_t test_ns_to_ticks_near32_val = k_ns_to_ticks_near32 (42)

◆ test_ns_to_ticks_near64_val

uint64_t test_ns_to_ticks_near64_val = k_ns_to_ticks_near64 (42)

◆ test_ticks_to_cyc_ceil32_val

uint32_t test_ticks_to_cyc_ceil32_val = k_ticks_to_cyc_ceil32 (42)

◆ test_ticks_to_cyc_ceil64_val

uint64_t test_ticks_to_cyc_ceil64_val = k_ticks_to_cyc_ceil64 (42)

◆ test_ticks_to_cyc_floor32_val

uint32_t test_ticks_to_cyc_floor32_val = k_ticks_to_cyc_floor32 (42)

◆ test_ticks_to_cyc_floor64_val

uint64_t test_ticks_to_cyc_floor64_val = k_ticks_to_cyc_floor64 (42)

◆ test_ticks_to_cyc_near32_val

uint32_t test_ticks_to_cyc_near32_val = k_ticks_to_cyc_near32 (42)

◆ test_ticks_to_cyc_near64_val

uint64_t test_ticks_to_cyc_near64_val = k_ticks_to_cyc_near64 (42)

◆ test_ticks_to_ms_ceil32_val

uint32_t test_ticks_to_ms_ceil32_val = k_ticks_to_ms_ceil32 (42)

◆ test_ticks_to_ms_ceil64_val

uint64_t test_ticks_to_ms_ceil64_val = k_ticks_to_ms_ceil64 (42)

◆ test_ticks_to_ms_floor32_val

uint32_t test_ticks_to_ms_floor32_val = k_ticks_to_ms_floor32 (42)

◆ test_ticks_to_ms_floor64_val

uint64_t test_ticks_to_ms_floor64_val = k_ticks_to_ms_floor64 (42)

◆ test_ticks_to_ms_near32_val

uint32_t test_ticks_to_ms_near32_val = k_ticks_to_ms_near32 (42)

◆ test_ticks_to_ms_near64_val

uint64_t test_ticks_to_ms_near64_val = k_ticks_to_ms_near64 (42)

◆ test_ticks_to_ns_ceil32_val

uint32_t test_ticks_to_ns_ceil32_val = k_ticks_to_ns_ceil32 (42)

◆ test_ticks_to_ns_ceil64_val

uint64_t test_ticks_to_ns_ceil64_val = k_ticks_to_ns_ceil64 (42)

◆ test_ticks_to_ns_floor32_val

uint32_t test_ticks_to_ns_floor32_val = k_ticks_to_ns_floor32 (42)

◆ test_ticks_to_ns_floor64_val

uint64_t test_ticks_to_ns_floor64_val = k_ticks_to_ns_floor64 (42)

◆ test_ticks_to_ns_near32_val

uint32_t test_ticks_to_ns_near32_val = k_ticks_to_ns_near32 (42)

◆ test_ticks_to_ns_near64_val

uint64_t test_ticks_to_ns_near64_val = k_ticks_to_ns_near64 (42)

◆ test_ticks_to_us_ceil32_val

uint32_t test_ticks_to_us_ceil32_val = k_ticks_to_us_ceil32 (42)

◆ test_ticks_to_us_ceil64_val

uint64_t test_ticks_to_us_ceil64_val = k_ticks_to_us_ceil64 (42)

◆ test_ticks_to_us_floor32_val

uint32_t test_ticks_to_us_floor32_val = k_ticks_to_us_floor32 (42)

◆ test_ticks_to_us_floor64_val

uint64_t test_ticks_to_us_floor64_val = k_ticks_to_us_floor64 (42)

◆ test_ticks_to_us_near32_val

uint32_t test_ticks_to_us_near32_val = k_ticks_to_us_near32 (42)

◆ test_ticks_to_us_near64_val

uint64_t test_ticks_to_us_near64_val = k_ticks_to_us_near64 (42)

◆ test_us_to_cyc_ceil32_val

uint32_t test_us_to_cyc_ceil32_val = k_us_to_cyc_ceil32 (42)

◆ test_us_to_cyc_ceil64_val

uint64_t test_us_to_cyc_ceil64_val = k_us_to_cyc_ceil64 (42)

◆ test_us_to_cyc_floor32_val

uint32_t test_us_to_cyc_floor32_val = k_us_to_cyc_floor32 (42)

◆ test_us_to_cyc_floor64_val

uint64_t test_us_to_cyc_floor64_val = k_us_to_cyc_floor64 (42)

◆ test_us_to_cyc_near32_val

uint32_t test_us_to_cyc_near32_val = k_us_to_cyc_near32 (42)

◆ test_us_to_cyc_near64_val

uint64_t test_us_to_cyc_near64_val = k_us_to_cyc_near64 (42)

◆ test_us_to_ticks_ceil32_val

uint32_t test_us_to_ticks_ceil32_val = k_us_to_ticks_ceil32 (42)

◆ test_us_to_ticks_ceil64_val

uint64_t test_us_to_ticks_ceil64_val = k_us_to_ticks_ceil64 (42)

◆ test_us_to_ticks_floor32_val

uint32_t test_us_to_ticks_floor32_val = k_us_to_ticks_floor32 (42)

◆ test_us_to_ticks_floor64_val

uint64_t test_us_to_ticks_floor64_val = k_us_to_ticks_floor64 (42)

◆ test_us_to_ticks_near32_val

uint32_t test_us_to_ticks_near32_val = k_us_to_ticks_near32 (42)

◆ test_us_to_ticks_near64_val

uint64_t test_us_to_ticks_near64_val = k_us_to_ticks_near64 (42)

◆ tests

struct test_rec tests[]
static
Initial value:
= {
}
static uint32_t test_us_to_cyc_floor32(uint32_t t)
Definition timer_convert.c:62
static uint32_t test_ns_to_cyc_floor32(uint32_t t)
Definition timer_convert.c:110
static uint32_t test_ns_to_ticks_near32(uint32_t t)
Definition timer_convert.c:118
static uint64_t test_ms_to_cyc_near64(uint64_t t)
Definition timer_convert.c:53
static uint32_t test_ticks_to_cyc_near32(uint32_t t)
Definition timer_convert.c:106
static uint32_t test_ticks_to_ms_ceil32(uint32_t t)
Definition timer_convert.c:96
static uint32_t test_cyc_to_ms_near32(uint32_t t)
Definition timer_convert.c:76
static uint32_t test_us_to_cyc_ceil32(uint32_t t)
Definition timer_convert.c:66
static uint64_t test_ns_to_cyc_floor64(uint64_t t)
Definition timer_convert.c:111
static uint32_t test_ms_to_cyc_near32(uint32_t t)
Definition timer_convert.c:52
static uint64_t test_cyc_to_ticks_near64(uint64_t t)
Definition timer_convert.c:89
static uint32_t test_cyc_to_ms_floor32(uint32_t t)
Definition timer_convert.c:74
static uint32_t test_cyc_to_ticks_floor32(uint32_t t)
Definition timer_convert.c:86
static uint64_t test_ns_to_ticks_floor64(uint64_t t)
Definition timer_convert.c:117
static uint32_t test_us_to_ticks_floor32(uint32_t t)
Definition timer_convert.c:68
static uint32_t test_cyc_to_ns_near32(uint32_t t)
Definition timer_convert.c:124
static uint32_t test_us_to_cyc_near32(uint32_t t)
Definition timer_convert.c:64
static uint32_t test_cyc_to_ns_ceil32(uint32_t t)
Definition timer_convert.c:126
@ UNIT_cyc
Definition timer_convert.c:13
@ UNIT_ticks
Definition timer_convert.c:13
@ UNIT_ms
Definition timer_convert.c:13
@ UNIT_us
Definition timer_convert.c:13
@ UNIT_ns
Definition timer_convert.c:13
static uint32_t test_ticks_to_ns_ceil32(uint32_t t)
Definition timer_convert.c:132
static uint64_t test_ticks_to_us_near64(uint64_t t)
Definition timer_convert.c:101
static uint32_t test_ns_to_ticks_floor32(uint32_t t)
Definition timer_convert.c:116
static uint32_t test_ticks_to_ns_floor32(uint32_t t)
Definition timer_convert.c:128
static uint64_t test_cyc_to_ns_near64(uint64_t t)
Definition timer_convert.c:125
static uint64_t test_ns_to_cyc_near64(uint64_t t)
Definition timer_convert.c:113
static uint32_t test_ms_to_cyc_floor32(uint32_t t)
Definition timer_convert.c:50
static uint64_t test_us_to_cyc_floor64(uint64_t t)
Definition timer_convert.c:63
static uint64_t test_cyc_to_ms_ceil64(uint64_t t)
Definition timer_convert.c:79
static uint32_t test_ms_to_ticks_ceil32(uint32_t t)
Definition timer_convert.c:60
static uint64_t test_ticks_to_ns_near64(uint64_t t)
Definition timer_convert.c:131
static uint64_t test_ms_to_ticks_near64(uint64_t t)
Definition timer_convert.c:59
static uint64_t test_ms_to_cyc_ceil64(uint64_t t)
Definition timer_convert.c:55
static uint64_t test_ms_to_ticks_floor64(uint64_t t)
Definition timer_convert.c:57
static uint64_t test_ticks_to_cyc_near64(uint64_t t)
Definition timer_convert.c:107
static uint32_t test_ticks_to_us_ceil32(uint32_t t)
Definition timer_convert.c:102
static uint32_t test_ns_to_cyc_ceil32(uint32_t t)
Definition timer_convert.c:114
static uint64_t test_us_to_ticks_ceil64(uint64_t t)
Definition timer_convert.c:73
static uint64_t test_us_to_ticks_floor64(uint64_t t)
Definition timer_convert.c:69
static uint32_t test_cyc_to_ms_ceil32(uint32_t t)
Definition timer_convert.c:78
static uint64_t test_cyc_to_us_near64(uint64_t t)
Definition timer_convert.c:83
static uint64_t test_ns_to_ticks_near64(uint64_t t)
Definition timer_convert.c:119
static uint64_t test_ticks_to_us_floor64(uint64_t t)
Definition timer_convert.c:99
static uint32_t test_ticks_to_cyc_floor32(uint32_t t)
Definition timer_convert.c:104
static uint64_t test_ticks_to_ms_floor64(uint64_t t)
Definition timer_convert.c:93
static uint32_t test_ticks_to_us_near32(uint32_t t)
Definition timer_convert.c:100
static uint64_t test_ticks_to_cyc_ceil64(uint64_t t)
Definition timer_convert.c:109
static uint32_t test_ms_to_ticks_floor32(uint32_t t)
Definition timer_convert.c:56
static uint64_t test_us_to_ticks_near64(uint64_t t)
Definition timer_convert.c:71
static uint64_t test_ms_to_ticks_ceil64(uint64_t t)
Definition timer_convert.c:61
static uint64_t test_cyc_to_ticks_ceil64(uint64_t t)
Definition timer_convert.c:91
static uint64_t test_us_to_cyc_ceil64(uint64_t t)
Definition timer_convert.c:67
static uint64_t test_ticks_to_ms_ceil64(uint64_t t)
Definition timer_convert.c:97
static uint64_t test_cyc_to_ms_floor64(uint64_t t)
Definition timer_convert.c:75
static uint64_t test_cyc_to_ns_floor64(uint64_t t)
Definition timer_convert.c:123
static uint32_t test_ticks_to_ms_floor32(uint32_t t)
Definition timer_convert.c:92
static uint32_t test_ns_to_cyc_near32(uint32_t t)
Definition timer_convert.c:112
static uint64_t test_us_to_cyc_near64(uint64_t t)
Definition timer_convert.c:65
static uint32_t test_us_to_ticks_ceil32(uint32_t t)
Definition timer_convert.c:72
static uint64_t test_ms_to_cyc_floor64(uint64_t t)
Definition timer_convert.c:51
static uint32_t test_ms_to_cyc_ceil32(uint32_t t)
Definition timer_convert.c:54
static uint64_t test_ticks_to_ns_floor64(uint64_t t)
Definition timer_convert.c:129
static uint64_t test_ticks_to_cyc_floor64(uint64_t t)
Definition timer_convert.c:105
static uint64_t test_ticks_to_us_ceil64(uint64_t t)
Definition timer_convert.c:103
static uint32_t test_ticks_to_ms_near32(uint32_t t)
Definition timer_convert.c:94
static uint64_t test_cyc_to_ticks_floor64(uint64_t t)
Definition timer_convert.c:87
static uint32_t test_ticks_to_ns_near32(uint32_t t)
Definition timer_convert.c:130
static uint32_t test_ms_to_ticks_near32(uint32_t t)
Definition timer_convert.c:58
static uint32_t test_ticks_to_us_floor32(uint32_t t)
Definition timer_convert.c:98
static uint32_t test_ticks_to_cyc_ceil32(uint32_t t)
Definition timer_convert.c:108
static uint64_t test_ns_to_ticks_ceil64(uint64_t t)
Definition timer_convert.c:121
static uint32_t test_cyc_to_us_ceil32(uint32_t t)
Definition timer_convert.c:84
static uint64_t test_ticks_to_ns_ceil64(uint64_t t)
Definition timer_convert.c:133
static uint64_t test_cyc_to_ns_ceil64(uint64_t t)
Definition timer_convert.c:127
static uint32_t test_cyc_to_ticks_ceil32(uint32_t t)
Definition timer_convert.c:90
static uint64_t test_ticks_to_ms_near64(uint64_t t)
Definition timer_convert.c:95
static uint32_t test_us_to_ticks_near32(uint32_t t)
Definition timer_convert.c:70
static uint64_t test_cyc_to_us_ceil64(uint64_t t)
Definition timer_convert.c:85
static uint64_t test_ns_to_cyc_ceil64(uint64_t t)
Definition timer_convert.c:115
static uint32_t test_cyc_to_us_near32(uint32_t t)
Definition timer_convert.c:82
static uint32_t test_cyc_to_ns_floor32(uint32_t t)
Definition timer_convert.c:122
static uint32_t test_cyc_to_ticks_near32(uint32_t t)
Definition timer_convert.c:88
static uint32_t test_cyc_to_us_floor32(uint32_t t)
Definition timer_convert.c:80
static uint32_t test_ns_to_ticks_ceil32(uint32_t t)
Definition timer_convert.c:120
static uint64_t test_cyc_to_ms_near64(uint64_t t)
Definition timer_convert.c:77
static uint64_t test_cyc_to_us_floor64(uint64_t t)
Definition timer_convert.c:81