Lines Matching refs:set

67 test_1(cpu_set_t* set)
76 CPU_ZERO(set);
77 TEST_INT_EQ(CPU_COUNT(set),0);
78 T(CPU_EQUAL(set, other));
79 T(CPU_EQUAL(other, set));
82 F(CPU_ISSET(nn, set));
87 CPU_SET(nn, set);
88 TEST_INT_EQ(CPU_COUNT(set),1);
90 T(CPU_ISSET(mm, set) == (mm == nn));
92 CPU_CLR(nn, set);
93 T(CPU_EQUAL(set, other));
99 CPU_SET(nn, set);
100 TEST_INT_EQ(CPU_COUNT(set), nn+1);
102 T(CPU_ISSET(mm, set) == (mm <= nn));
109 CPU_CLR(nn, set);
110 TEST_INT_EQ(CPU_COUNT(set), nnMax-1);
112 T(CPU_ISSET(mm, set) == (mm != nn));
114 CPU_SET(nn, set);
120 CPU_CLR(nn, set);
121 TEST_INT_EQ(CPU_COUNT(set), nn);
123 T(CPU_ISSET(mm, set) == (mm < nn));
126 T(CPU_EQUAL(set, other));
130 test_1_s(size_t setsize, cpu_set_t* set)
138 CPU_ZERO_S(setsize, set);
139 T(CPU_EQUAL_S(setsize, set, other));
140 T(CPU_EQUAL_S(setsize, other, set));
144 F(CPU_ISSET_S(nn, setsize, set));
149 CPU_SET_S(nn, setsize, set);
150 TEST_INT_EQ(CPU_COUNT_S(setsize, set), 1);
152 T(CPU_ISSET_S(mm, setsize, set) == (mm == nn));
154 CPU_CLR_S(nn, setsize, set);
155 T(CPU_EQUAL_S(setsize, set, other));
161 CPU_SET_S(nn, setsize, set);
162 TEST_INT_EQ(CPU_COUNT_S(setsize, set), nn+1);
164 T(CPU_ISSET_S(mm, setsize, set) == (mm <= nn));
171 CPU_CLR_S(nn, setsize, set);
172 TEST_INT_EQ(CPU_COUNT_S(setsize, set), nnMax-1);
174 T(CPU_ISSET_S(mm, setsize, set) == (mm != nn));
176 CPU_SET_S(nn, setsize, set);
182 CPU_CLR_S(nn, setsize, set);
183 TEST_INT_EQ(CPU_COUNT_S(setsize, set), nn);
185 T(CPU_ISSET_S(mm, setsize, set) == (mm < nn));
188 T(CPU_EQUAL_S(setsize, set, other));
203 cpu_set_t* set = CPU_ALLOC(count);
204 test_1_s(count/8, set);
205 CPU_FREE(set);