Home
last modified time | relevance | path

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

/Zephyr-latest/tests/unit/time_units/
Doverflow.c48 const uint32_t to_hz = 1000000000UL; 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-latest/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()
290 val, val, from_hz, to_hz, t->precision, round_s[t->round], in test_conversion()
/Zephyr-latest/include/zephyr/sys/
Dtime_units.h96 #define z_tmcvt_use_fast_algo(from_hz, to_hz) \ argument
98 UINT32_MAX) * to_hz) <= UINT32_MAX)