Lines Matching refs:j

53         for (int j = 0; j < N; ++j) {  in operator ()()  local
54 bool msg = my_b.try_put( T(N*i + j) ); in operator ()()
107 for (int j = 0; j < N; ++j) { in operator ()() local
129 for ( int j = i; j < j_end; ++j ) { in operator ()() local
130 CHECK_MESSAGE( my_b.try_put( T (N*tid + j ) ) == true, "" ); in operator ()()
133 for ( int j = i; j < j_end; ++j ) { in operator ()() local
205 T j = bogus_value; in test_parallel() local
213 spin_try_get( b, j ); in test_parallel()
214 check_item( next_value, j ); in test_parallel()
215 j = bogus_value; in test_parallel()
221 j = bogus_value; in test_parallel()
223 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_parallel()
224 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
234 j = bogus_value; in test_parallel()
235 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_parallel()
236 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
245 j = bogus_value; in test_parallel()
246 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_parallel()
247 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
259 j = bogus_value; in test_parallel()
261 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_parallel()
263 CHECK_MESSAGE( b2.try_get( j ) == false, "" ); in test_parallel()
265 CHECK_MESSAGE( b3.try_get( j ) == false, "" ); in test_parallel()
266 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
276 j = bogus_value; in test_parallel()
278 CHECK_MESSAGE( b_copy.try_get( j ) == false, "" ); in test_parallel()
290 j = bogus_value; in test_parallel()
292 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_parallel()
294 CHECK_MESSAGE( b_copy.try_get( j ) == false, "" ); in test_parallel()
295 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
321 T j = bogus_value; in test_serial() local
329 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_serial()
330 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
343 j = bogus_value; in test_serial()
344 spin_try_get( b, j ); in test_serial()
345 vsum += j; in test_serial()
348 j = bogus_value; in test_serial()
350 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_serial()
351 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
362 j = bogus_value; in test_serial()
363 spin_try_get( b2, j ); in test_serial()
364 vsum += j; in test_serial()
367 j = bogus_value; in test_serial()
369 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_serial()
371 CHECK_MESSAGE( b2.try_get( j ) == false, "" ); in test_serial()
372 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
377 CHECK_MESSAGE( b2.try_get( j ) == false, "" ); in test_serial()
378 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
380 CHECK_MESSAGE( b.try_get( j ) == true, "" ); in test_serial()
381 CHECK_MESSAGE( j == 1, "" ); in test_serial()
394 j = bogus_value; in test_serial()
395 spin_try_get( b3, j ); in test_serial()
396 vsum += j; in test_serial()
399 j = bogus_value; in test_serial()
401 CHECK_MESSAGE( b.try_get( j ) == false, "" ); in test_serial()
403 CHECK_MESSAGE( b2.try_get( j ) == false, "" ); in test_serial()
405 CHECK_MESSAGE( b3.try_get( j ) == false, "" ); in test_serial()
406 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
411 CHECK_MESSAGE( b2.try_get( j ) == false, "" ); in test_serial()
412 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
414 CHECK_MESSAGE( b3.try_get( j ) == false, "" ); in test_serial()
415 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
417 CHECK_MESSAGE( b.try_get( j ) == true, "" ); in test_serial()
418 CHECK_MESSAGE( j == 1, "" ); in test_serial()