Lines Matching refs:Nlog
1369 const int Nlog = 15;
1370 const int N = 1 << Nlog;
1379 n %= Nlog;
1391 std::vector<MyThread*> vec(Nlog);
1394 // Create and start Nlog threads
1395 for (int i = 0; i < Nlog; i++) {
1398 for (int i = 0; i < Nlog; i++) {
1402 for (int i = 0; i < Nlog; i++) {
1421 const int Nlog = 10;
1422 const int N = 1 << Nlog;
1424 static Mutex *MUs[Nlog];
1429 for (int j = 0; j < Nlog; j++) if (i & (1 << j)) MUs[j]->Lock();
1431 for (int j = 0; j < Nlog; j++) if (i & (1 << j)) MUs[j]->Unlock();
1438 for (int i = 0; i < Nlog; i++) {
1444 for (int i = 0; i < Nlog; i++) {
3335 // Instead of creating Nlog*N_iter threads,
3336 // we create Nlog threads and do N_iter barriers.
3339 const int Nlog = 16;
3340 const int N = 1 << Nlog;
3351 n %= Nlog;
3378 std::vector<MyThread*> vec(Nlog);
3381 barriers[i] = new Barrier(Nlog);
3383 // Create and start Nlog threads
3384 for (int i = 0; i < Nlog; i++) {
3390 for (int i = 0; i < Nlog; i++) {
3412 const int Nlog = 16;
3413 const int N = 1 << Nlog;
3424 n %= Nlog;
3459 std::vector<MyThread*> vec(Nlog);
3462 barriers[i] = new Barrier(Nlog);
3464 // Create and start Nlog threads
3465 for (int i = 0; i < Nlog; i++) {
3471 for (int i = 0; i < Nlog; i++) {