Lines Matching refs:nsta

25 	nstime_t nsta, nstb;  in TEST_BEGIN()  local
27 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
29 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
36 nstime_t nsta, nstb; in TEST_BEGIN() local
38 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
39 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
40 assert_d_eq(nstime_compare(&nsta, &nstb), 0, "Times should be equal"); in TEST_BEGIN()
41 assert_d_eq(nstime_compare(&nstb, &nsta), 0, "Times should be equal"); in TEST_BEGIN()
44 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
46 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
50 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
52 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
56 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
58 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
62 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
64 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
70 nstime_t nsta, nstb; in TEST_BEGIN() local
72 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
73 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
74 nstime_add(&nsta, &nstb); in TEST_BEGIN()
76 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
79 nstime_init2(&nsta, 42, BILLION - 1); in TEST_BEGIN()
80 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
81 nstime_add(&nsta, &nstb); in TEST_BEGIN()
83 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
89 nstime_t nsta, nstb; in TEST_BEGIN() local
91 nstime_init2(&nsta, 42, BILLION - 1); in TEST_BEGIN()
92 nstime_iadd(&nsta, 1); in TEST_BEGIN()
94 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
97 nstime_init2(&nsta, 42, 1); in TEST_BEGIN()
98 nstime_iadd(&nsta, BILLION + 1); in TEST_BEGIN()
100 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
106 nstime_t nsta, nstb; in TEST_BEGIN() local
108 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
109 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
110 nstime_subtract(&nsta, &nstb); in TEST_BEGIN()
112 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
115 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
117 nstime_subtract(&nsta, &nstb); in TEST_BEGIN()
119 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
125 nstime_t nsta, nstb; in TEST_BEGIN() local
127 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
128 nstime_isubtract(&nsta, 42*BILLION + 43); in TEST_BEGIN()
130 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
133 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
134 nstime_isubtract(&nsta, 41*BILLION + 44); in TEST_BEGIN()
136 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
142 nstime_t nsta, nstb; in TEST_BEGIN() local
144 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
145 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
147 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
150 nstime_init2(&nsta, 42, 666666666); in TEST_BEGIN()
151 nstime_imultiply(&nsta, 3); in TEST_BEGIN()
153 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
159 nstime_t nsta, nstb; in TEST_BEGIN() local
161 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
162 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
163 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
164 nstime_idivide(&nsta, 10); in TEST_BEGIN()
165 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
168 nstime_init2(&nsta, 42, 666666666); in TEST_BEGIN()
169 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
170 nstime_imultiply(&nsta, 3); in TEST_BEGIN()
171 nstime_idivide(&nsta, 3); in TEST_BEGIN()
172 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
178 nstime_t nsta, nstb, nstc; in TEST_BEGIN() local
180 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
181 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
182 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
183 assert_u64_eq(nstime_divide(&nsta, &nstb), 10, in TEST_BEGIN()
186 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
187 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
188 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
190 nstime_add(&nsta, &nstc); in TEST_BEGIN()
191 assert_u64_eq(nstime_divide(&nsta, &nstb), 10, in TEST_BEGIN()
194 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
195 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
196 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
198 nstime_subtract(&nsta, &nstc); in TEST_BEGIN()
199 assert_u64_eq(nstime_divide(&nsta, &nstb), 9, in TEST_BEGIN()