Lines Matching refs:set

71   cpu_set_t set;  in TEST()  local
73 CPU_ZERO(&set); in TEST()
74 CPU_SET(0, &set); in TEST()
75 CPU_SET(17, &set); in TEST()
77 ASSERT_EQ(i == 0 || i == 17, CPU_ISSET(i, &set)); in TEST()
81 CPU_SET(CPU_SETSIZE, &set); in TEST()
82 ASSERT_FALSE(CPU_ISSET(CPU_SETSIZE, &set)); in TEST()
86 cpu_set_t set; in TEST() local
88 CPU_ZERO(&set); in TEST()
89 ASSERT_EQ(0, CPU_COUNT(&set)); in TEST()
90 CPU_SET(2, &set); in TEST()
91 CPU_SET(10, &set); in TEST()
92 ASSERT_EQ(2, CPU_COUNT(&set)); in TEST()
93 CPU_CLR(10, &set); in TEST()
94 ASSERT_EQ(1, CPU_COUNT(&set)); in TEST()
98 cpu_set_t set; in TEST() local
100 CPU_ZERO(&set); in TEST()
101 ASSERT_EQ(0, CPU_COUNT(&set)); in TEST()
103 ASSERT_FALSE(CPU_ISSET(i, &set)); in TEST()
108 cpu_set_t set; in TEST() local
110 CPU_ZERO(&set); in TEST()
111 CPU_SET(0, &set); in TEST()
112 CPU_SET(1, &set); in TEST()
114 ASSERT_EQ(i == 0 || i == 1, CPU_ISSET(i, &set)); in TEST()
116 CPU_CLR(1, &set); in TEST()
118 ASSERT_EQ(i == 0, CPU_ISSET(i, &set)); in TEST()
122 CPU_CLR(CPU_SETSIZE, &set); in TEST()
123 ASSERT_FALSE(CPU_ISSET(CPU_SETSIZE, &set)); in TEST()
168 cpu_set_t* set = CPU_ALLOC(17); in TEST() local
171 CPU_ZERO_S(size, set); in TEST()
172 ASSERT_EQ(0, CPU_COUNT_S(size, set)); in TEST()
173 CPU_SET_S(16, size, set); in TEST()
174 ASSERT_TRUE(CPU_ISSET_S(16, size, set)); in TEST()
176 CPU_FREE(set); in TEST()
180 cpu_set_t* set = CPU_ALLOC(10 * CPU_SETSIZE); in TEST() local
183 CPU_ZERO_S(size, set); in TEST()
184 ASSERT_EQ(0, CPU_COUNT_S(size, set)); in TEST()
185 CPU_SET_S(CPU_SETSIZE, size, set); in TEST()
186 ASSERT_TRUE(CPU_ISSET_S(CPU_SETSIZE, size, set)); in TEST()
188 CPU_FREE(set); in TEST()
194 cpu_set_t* set = CPU_ALLOC(set_size); in TEST() local
196 CPU_ZERO_S(size, set); in TEST()
198 ASSERT_FALSE(CPU_ISSET_S(i, size, set)); in TEST()
199 CPU_SET_S(i, size, set); in TEST()
200 ASSERT_TRUE(CPU_ISSET_S(i, size, set)); in TEST()
201 ASSERT_EQ(i + 1, CPU_COUNT_S(size, set)); in TEST()
205 CPU_CLR_S(i, size, set); in TEST()
206 ASSERT_FALSE(CPU_ISSET_S(i, size, set)); in TEST()
207 ASSERT_EQ(set_size - i - 1, CPU_COUNT_S(size, set)); in TEST()
210 CPU_FREE(set); in TEST()