Lines Matching refs:skew
52 zassert_equal(ss.skew, 0, in test_state_update()
63 zassert_equal(ss.skew, 1.0, in test_state_update()
105 float skew = 0.99; in test_state_set_skew() local
110 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
116 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
122 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
125 rv = timeutil_sync_state_set_skew(&ss, skew, NULL); in test_state_set_skew()
128 zassert_equal(ss.skew, skew, in test_state_set_skew()
135 skew = 1.01; in test_state_set_skew()
139 rv = timeutil_sync_state_set_skew(&ss, skew, &si); in test_state_set_skew()
142 zassert_equal(ss.skew, skew, in test_state_set_skew()
166 float skew = 0.0; in test_estimate_skew() local
168 skew = timeutil_sync_estimate_skew(&ss); in test_estimate_skew()
169 zassert_equal(skew, 0, in test_estimate_skew()
170 "unexpected uninit skew: %f", skew); in test_estimate_skew()
177 skew = timeutil_sync_estimate_skew(&ss); in test_estimate_skew()
178 zassert_equal(skew, 0, in test_estimate_skew()
179 "unexpected base-only skew: %f", skew); in test_estimate_skew()
194 skew = timeutil_sync_estimate_skew(&ss); in test_estimate_skew()
195 zassert_equal(skew, 1.0, in test_estimate_skew()
196 "unexpected linear skew: %f", skew); in test_estimate_skew()
202 skew = timeutil_sync_estimate_skew(&ss); in test_estimate_skew()
203 zassert_equal(skew, 2.0, in test_estimate_skew()
204 "unexpected half skew: %f", skew); in test_estimate_skew()
210 skew = timeutil_sync_estimate_skew(&ss); in test_estimate_skew()
211 zassert_equal(skew, 0.5, in test_estimate_skew()
212 "unexpected double skew: %f", skew); in test_estimate_skew()
235 zassert_equal(ss.skew, 1.0, in tref_from_local()
312 zassert_equal(ss.skew, 1.0, in tlocal_from_ref()
403 float skew = 1.0; in test_skew_to_ppb() local
404 int32_t ppb = timeutil_sync_skew_to_ppb(skew); in test_skew_to_ppb()
409 skew = 0.999976; in test_skew_to_ppb()
410 ppb = timeutil_sync_skew_to_ppb(skew); in test_skew_to_ppb()
414 skew = 1.000022; in test_skew_to_ppb()
415 ppb = timeutil_sync_skew_to_ppb(skew); in test_skew_to_ppb()
419 skew = 3.147483587; in test_skew_to_ppb()
420 ppb = timeutil_sync_skew_to_ppb(skew); in test_skew_to_ppb()
422 "unexpected near limit: %.10g %d", skew, ppb); in test_skew_to_ppb()
423 skew = 3.147483826; in test_skew_to_ppb()
424 ppb = timeutil_sync_skew_to_ppb(skew); in test_skew_to_ppb()
426 "unexpected above limit: %.10g %d", skew, ppb); in test_skew_to_ppb()