Home
last modified time | relevance | path

Searched refs:from_hz (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.6.0/tests/unit/time_units/
Doverflow.c47 const uint32_t from_hz = 32768UL; in ZTEST() local
51 z_tmcvt(UINT64_MAX / to_hz - 1, from_hz, to_hz, true, false, false, false)); in ZTEST()
53 z_tmcvt(UINT64_MAX / to_hz, from_hz, to_hz, true, false, false, false)); in ZTEST()
55 z_tmcvt(UINT64_MAX / to_hz + 1, from_hz, to_hz, true, false, false, false)); in ZTEST()
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_api/src/
Dtimer_convert.c241 uint32_t from_hz = get_hz(t->src), to_hz = get_hz(t->dst); in test_conversion() local
252 if ((val * to_hz) >= ((((uint64_t)from_hz) << 32))) { in test_conversion()
273 int64_t diff = (int64_t)(val * to_hz - result * from_hz); in test_conversion()
277 maxdiff = from_hz - 1; in test_conversion()
281 mindiff = -(int64_t)(from_hz-1); in test_conversion()
283 maxdiff = from_hz/2; in test_conversion()
284 mindiff = -(int64_t)(from_hz/2); in test_conversion()
290 val, val, from_hz, to_hz, t->precision, round_s[t->round], in test_conversion()
/Zephyr-Core-3.6.0/include/zephyr/sys/
Dtime_units.h90 #define z_tmcvt_use_fast_algo(from_hz, to_hz) \ argument
91 ((DIV_ROUND_UP(CONFIG_SYS_CLOCK_MAX_TIMEOUT_DAYS * 24ULL * 3600ULL * from_hz, \