Lines Matching refs:p
121 bool in_row(const std::vector<board_element>& b, unsigned row, unsigned col, unsigned short p) { in in_row() argument
123 if (c != col && b[row * BOARD_DIM + c].solved_element == p) in in_row()
128 bool in_col(const std::vector<board_element>& b, unsigned row, unsigned col, unsigned short p) { in in_col() argument
130 if (r != row && b[r * BOARD_DIM + col].solved_element == p) in in_col()
135 bool in_block(const std::vector<board_element>& b, unsigned row, unsigned col, unsigned short p) { in in_block() argument
139 if (!(i == row && j == col) && b[i * BOARD_DIM + j].solved_element == p) in in_block()
263 unsigned solve(int p) { in solve() argument
264 oneapi::tbb::global_control c(oneapi::tbb::global_control::max_allowed_parallelism, p); in solve()
301 for (int p = threads.first; p <= threads.last; p = threads.step(p)) { in main() local
302 unsigned number = solve(p); in main()
307 p, in main()
313 p, in main()