Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/dragonfly/lib/libthread_xu/thread/
H A Dthr_cond.c106 *cond = pcond; in cond_init()
116 if (cond) {
135 if (*cond == NULL) in init_static()
149 *cond = NULL; in _pthread_cond_init()
160 if (cond == NULL) { in _pthread_cond_destroy()
176 cv = *cond; in _pthread_cond_destroy()
177 *cond = NULL; in _pthread_cond_destroy()
210 cv = *info->cond; in cond_cancel_handler()
253 cv = *cond; in cond_wait_common()
264 info.cond = cond; in cond_wait_common()
[all …]
/dragonfly/contrib/xz/src/common/
H A Dmythread.h116 pthread_cond_t cond; member
259 int ret = pthread_cond_destroy(&cond->cond); in mythread_cond_destroy()
267 int ret = pthread_cond_signal(&cond->cond); in mythread_cond_signal()
275 int ret = pthread_cond_wait(&cond->cond, mutex); in mythread_cond_wait()
286 int ret = pthread_cond_timedwait(&cond->cond, mutex, condtime); in mythread_cond_timedwait()
309 (void)cond; in mythread_condtime_set()
454 CloseHandle(*cond); in mythread_cond_destroy()
456 (void)cond; in mythread_cond_destroy()
464 SetEvent(*cond); in mythread_cond_signal()
466 WakeConditionVariable(cond); in mythread_cond_signal()
[all …]
/dragonfly/stand/boot/common/
H A Dcommands.c534 struct cond *cond = &CondStack[CondIndex++]; in command_ifexists() local
543 CurrentCondition = (cond->inherit && cond->current); in command_ifexists()
560 struct cond *cond = &CondStack[CondIndex++]; in command_ifset() local
569 CurrentCondition = (cond->inherit && cond->current); in command_ifset()
588 struct cond *cond = &CondStack[CondIndex - 1]; in command_elseifexists() local
602 CurrentCondition = (cond->inherit && cond->current); in command_elseifexists()
613 struct cond *cond; in command_else() local
617 cond->current = !cond->current; in command_else()
618 CurrentCondition = (cond->inherit && cond->current); in command_else()
631 struct cond *cond; in command_endif() local
[all …]
/dragonfly/contrib/gcc-4.7/gcc/
H A Dtree-ssa-loop-unswitch.c123 tree cond, use; in tree_may_unswitch_on() local
151 return cond; in tree_may_unswitch_on()
171 TREE_OPERAND (cond, 0), 0) in simplify_using_entry_checks()
173 TREE_OPERAND (cond, 1), 0)) in simplify_using_entry_checks()
179 return cond; in simplify_using_entry_checks()
183 return cond; in simplify_using_entry_checks()
197 tree cond = NULL_TREE; in tree_unswitch_single_loop() local
227 cond = simplify_using_entry_checks (loop, cond); in tree_unswitch_single_loop()
229 if (integer_nonzerop (cond)) in tree_unswitch_single_loop()
235 else if (integer_zerop (cond)) in tree_unswitch_single_loop()
[all …]
H A Dloop-unswitch.c94 rtx seq, jump, cond; in compare_and_jump_seq() local
108 gcc_assert (GET_CODE (cond) == comp); in compare_and_jump_seq()
237 reversed_condition (rtx cond) in reversed_condition() argument
245 GET_MODE (cond), XEXP (cond, 0), in reversed_condition()
246 XEXP (cond, 1)); in reversed_condition()
329 if (cond != const0_rtx in unswitch_single_loop()
330 && cond != const_true_rtx) in unswitch_single_loop()
332 rcond = reversed_condition (cond); in unswitch_single_loop()
341 if (cond == const_true_rtx) in unswitch_single_loop()
349 else if (cond == const0_rtx) in unswitch_single_loop()
[all …]
H A Difcvt.c789 rtx cond = if_info->cond; in noce_emit_store_flag() local
992 rtx cond = if_info->cond; in noce_try_move() local
1221 rtx cond = if_info->cond; in noce_try_addcc() local
1936 if_info->cond = cond; in noce_try_minmax()
2083 if_info->cond = cond; in noce_try_abs()
2099 cond = if_info->cond; in noce_try_sign_mask()
2178 cond = if_info->cond; in noce_try_bitop()
2190 cond = XEXP (cond, 0); in noce_try_bitop()
2443 rtx cond = if_info->cond; in noce_process_if_block() local
2850 rtx cond = if_info->cond; in cond_move_process_if_block() local
[all …]
H A Dtree-if-conv.c252 is_true_predicate (tree cond) in is_true_predicate() argument
254 return (cond == NULL_TREE in is_true_predicate()
256 || integer_onep (cond)); in is_true_predicate()
379 prev_cond, cond); in add_to_dst_predicate_list()
943 tree cond; in predicate_bbs() local
995 cond = NULL_TREE; in predicate_bbs()
1014 if (cond == NULL_TREE) in predicate_bbs()
1215 *cond = TREE_OPERAND (*cond, 0); in find_phi_replacement_condition()
1224 *cond = force_gimple_operand_gsi_1 (gsi, unshare_expr (*cond), in find_phi_replacement_condition()
1524 cond = TREE_OPERAND (cond, 0); in predicate_mem_writes()
[all …]
H A Dtree-ssa-uninit.c322 gimple cond; member
766 if (pred2->cond == pred->cond in find_matching_predicate_in_rest_chains()
1019 gimple cond; in use_pred_not_overlap_with_undef_path_pred() local
1025 cond = the_pred->cond; in use_pred_not_overlap_with_undef_path_pred()
1487 cond1 = expr1->cond; in is_pred_expr_subset_of()
1633 return gimple_uid (i1->cond) - gimple_uid (i2->cond); in pred_chain_length_cmp()
1670 if (gimple_cond_lhs (xx->cond) != gimple_cond_lhs (xx2->cond) in normalize_preds()
1671 || gimple_cond_rhs (xx->cond) != gimple_cond_rhs (xx2->cond) in normalize_preds()
1675 if (gimple_cond_lhs (yy->cond) != gimple_cond_lhs (nyy->cond) in normalize_preds()
1676 || gimple_cond_rhs (yy->cond) != gimple_cond_rhs (nyy->cond) in normalize_preds()
[all …]
H A Dloop-iv.c1698 return cond; in canon_condition()
1728 cond = canon_condition (cond); in simplify_using_condition()
1911 cond = reversed_condition (cond); in simplify_using_initial_values()
1912 if (cond) in simplify_using_initial_values()
2035 switch (cond) in shorten_into_mode()
2097 switch (cond) in canonicalize_iv_subregs()
2315 switch (cond) in iv_number_of_iterations()
2322 cond = swap_condition (cond); in iv_number_of_iterations()
2395 switch (cond) in iv_number_of_iterations()
2429 cond = (cond == LT) ? LE : LEU; in iv_number_of_iterations()
[all …]
H A Dtree-ssa-threadedge.c456 tree cond, cached_lhs; in simplify_control_stmt_condition() local
539 cond = gimple_switch_index (stmt); in simplify_control_stmt_condition()
541 cond = gimple_goto_dest (stmt); in simplify_control_stmt_condition()
547 if (TREE_CODE (cond) == SSA_NAME) in simplify_control_stmt_condition()
549 cached_lhs = cond; in simplify_control_stmt_condition()
636 tree cond; in thread_around_empty_block() local
671 if (cond && is_gimple_min_invariant (cond)) in thread_around_empty_block()
673 edge taken_edge = find_taken_edge (bb, cond); in thread_around_empty_block()
770 tree cond; in thread_across_edge() local
776 if (cond && is_gimple_min_invariant (cond)) in thread_across_edge()
[all …]
H A Dtree-ssa-loop-ivcanon.c75 gimple cond; in create_canonical_iv() local
86 cond = last_stmt (exit->src); in create_canonical_iv()
107 gimple_cond_set_code (cond, cmp); in create_canonical_iv()
108 gimple_cond_set_lhs (cond, var); in create_canonical_iv()
109 gimple_cond_set_rhs (cond, build_int_cst (type, 0)); in create_canonical_iv()
110 update_stmt (cond); in create_canonical_iv()
329 gimple cond; in try_unroll_loop_completely() local
413 cond = last_stmt (exit->src); in try_unroll_loop_completely()
415 gimple_cond_make_true (cond); in try_unroll_loop_completely()
417 gimple_cond_make_false (cond); in try_unroll_loop_completely()
[all …]
/dragonfly/contrib/gcc-4.7/gcc/c-family/
H A Dc-omp.c396 if (cond == NULL_TREE) in c_finish_omp_for()
405 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for()
408 if (TREE_CODE (cond) == LT_EXPR in c_finish_omp_for()
434 TREE_OPERAND (cond, 1) in c_finish_omp_for()
436 TREE_OPERAND (cond, 1)); in c_finish_omp_for()
442 TREE_OPERAND (cond, 0) in c_finish_omp_for()
444 TREE_OPERAND (cond, 0)); in c_finish_omp_for()
451 TREE_SET_CODE (cond, in c_finish_omp_for()
453 TREE_OPERAND (cond, 1) = TREE_OPERAND (cond, 0); in c_finish_omp_for()
466 TREE_SET_CODE (cond, TREE_CODE (cond) == NE_EXPR in c_finish_omp_for()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Difcvt.c821 rtx cond = if_info->cond; in noce_emit_store_flag() local
1067 rtx cond = if_info->cond; in noce_try_move() local
1225 rtx cond = if_info->cond; in noce_try_inverse_constants() local
1518 cond = if_info->cond; in noce_try_addcc()
2049 rtx cond = if_info->cond; in noce_try_cmove_arith() local
2544 if_info->cond = cond; in noce_try_minmax()
2712 if_info->cond = cond; in noce_try_abs()
2734 cond = if_info->cond; in noce_try_sign_mask()
2816 cond = if_info->cond; in noce_try_bitop()
2835 cond = XEXP (cond, 0); in noce_try_bitop()
[all …]
H A Dtree-if-conv.c457 cond = op0; in fold_build_cond_expr()
1268 tree cond; in predicate_bbs() local
1747 cond = c; in gen_phi_arg_condition()
1756 cond = fold_or_predicates (EXPR_LOCATION (c), c, cond); in gen_phi_arg_condition()
1757 cond = force_gimple_operand_gsi_1 (gsi, unshare_expr (cond), in gen_phi_arg_condition()
1762 cond = c; in gen_phi_arg_condition()
1765 return cond; in gen_phi_arg_condition()
1795 tree cond; in predicate_scalar_phi() local
1839 cond = TREE_OPERAND (cond, 0); in predicate_scalar_phi()
1939 cond = TREE_OPERAND (cond, 0); in predicate_scalar_phi()
[all …]
H A Dtree-ssa-loop-unswitch.c194 tree cond, use; in tree_may_unswitch_on() local
227 return cond; in tree_may_unswitch_on()
247 TREE_OPERAND (cond, 0), 0) in simplify_using_entry_checks()
255 return cond; in simplify_using_entry_checks()
259 return cond; in simplify_using_entry_checks()
273 tree cond = NULL_TREE; in tree_unswitch_single_loop() local
338 cond = simplify_using_entry_checks (loop, cond); in tree_unswitch_single_loop()
340 if (integer_nonzerop (cond)) in tree_unswitch_single_loop()
582 gcond *cond; in find_loop_guard() local
591 if (! cond) in find_loop_guard()
[all …]
H A Dipa-predicate.h169 inline bool operator==(const bool cond) const
171 if (cond)
188 inline bool operator!=(const bool cond) const
190 return !(*this == cond);
220 inline void set_to_cond (int cond) in set_to_cond() argument
222 m_clause[0] = 1 << cond; in set_to_cond()
229 void dump_condition (FILE *f, conditions conditions, int cond);
H A Dloop-iv.c1714 return cond; in canon_condition()
1728 GET_MODE (cond), XEXP (cond, 0), in reversed_condition()
1758 cond = canon_condition (cond); in simplify_using_condition()
1941 cond = reversed_condition (cond); in simplify_using_initial_values()
1942 if (cond) in simplify_using_initial_values()
2084 switch (cond) in shorten_into_mode()
2146 switch (cond) in canonicalize_iv_subregs()
2364 switch (cond) in iv_number_of_iterations()
2371 cond = swap_condition (cond); in iv_number_of_iterations()
2478 cond = (cond == LT) ? LE : LEU; in iv_number_of_iterations()
[all …]
H A Dtree-ssa-threadedge.c440 tree cond, cached_lhs; in simplify_control_stmt_condition() local
514 cond = gimple_goto_dest (stmt); in simplify_control_stmt_condition()
520 if (TREE_CODE (cond) == SSA_NAME) in simplify_control_stmt_condition()
522 tree original_lhs = cond; in simplify_control_stmt_condition()
523 cached_lhs = cond; in simplify_control_stmt_condition()
906 tree cond; in thread_around_empty_blocks() local
975 if (cond != NULL_TREE in thread_around_empty_blocks()
976 && (is_gimple_min_invariant (cond) in thread_around_empty_blocks()
1097 tree cond; in thread_through_normal_block() local
1103 if (!cond) in thread_through_normal_block()
[all …]
H A Dipa-predicate.c289 dump_condition (FILE *f, conditions conditions, int cond) in dump_condition() argument
292 if (cond == predicate::false_condition) in dump_condition()
294 else if (cond == predicate::not_inlined_condition) in dump_condition()
298 c = &(*conditions)[cond - predicate::first_dynamic_condition]; in dump_condition()
417 int cond; in remap_after_inlining() local
422 for (cond = 0; cond < num_conditions; cond++) in remap_after_inlining()
424 if (clause & possible_truths & (1 << cond)) in remap_after_inlining()
429 if (cond >= predicate::first_dynamic_condition) in remap_after_inlining()
433 c = &(*callee_info->conds)[cond in remap_after_inlining()
472 cond_predicate = predicate::predicate_testing_cond (cond); in remap_after_inlining()
/dragonfly/contrib/gcc-8.0/gcc/c-family/
H A Dc-omp.c600 if (cond == NULL_TREE) in c_finish_omp_for()
613 cond = TREE_OPERAND (cond, 1); in c_finish_omp_for()
644 TREE_OPERAND (cond, 1) in c_finish_omp_for()
646 TREE_OPERAND (cond, 1)); in c_finish_omp_for()
652 TREE_OPERAND (cond, 0) in c_finish_omp_for()
654 TREE_OPERAND (cond, 0)); in c_finish_omp_for()
661 TREE_SET_CODE (cond, in c_finish_omp_for()
663 TREE_OPERAND (cond, 1) = TREE_OPERAND (cond, 0); in c_finish_omp_for()
678 TREE_SET_CODE (cond, TREE_CODE (cond) == NE_EXPR in c_finish_omp_for()
683 TREE_SET_CODE (cond, TREE_CODE (cond) == NE_EXPR in c_finish_omp_for()
[all …]
/dragonfly/contrib/zstd/lib/common/
H A Dthreading.c103 int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr) in ZSTD_pthread_cond_init() argument
105 *cond = (pthread_cond_t*)ZSTD_malloc(sizeof(pthread_cond_t)); in ZSTD_pthread_cond_init()
106 if (!*cond) in ZSTD_pthread_cond_init()
108 return pthread_cond_init(*cond, attr); in ZSTD_pthread_cond_init()
111 int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond) in ZSTD_pthread_cond_destroy() argument
113 if (!*cond) in ZSTD_pthread_cond_destroy()
116 int const ret = pthread_cond_destroy(*cond); in ZSTD_pthread_cond_destroy()
117 ZSTD_free(*cond); in ZSTD_pthread_cond_destroy()
/dragonfly/lib/libc/resolv/
H A Dres_debug.h22 # define Dprint(cond, args) /*empty*/ argument
23 # define DprintQ(cond, args, query, size) /*empty*/ argument
27 # define Dprint(cond, args) if (cond) {fprintf args;} else {} argument
28 # define DprintQ(cond, args, query, size) if (cond) {\ argument
/dragonfly/contrib/bmake/
H A DFILES20 cond.c
115 unit-tests/cond-eof.exp
116 unit-tests/cond-eof.mk
131 unit-tests/cond-func.exp
132 unit-tests/cond-func.mk
133 unit-tests/cond-late.exp
134 unit-tests/cond-late.mk
144 unit-tests/cond-op-or.mk
147 unit-tests/cond-op.exp
148 unit-tests/cond-op.mk
[all …]
/dragonfly/contrib/xz/src/liblzma/common/
H A Dstream_encoder_mt.c92 mythread_cond cond; member
176 mythread_cond cond; member
191 mythread_cond_signal(&thr->coder->cond); in worker_error()
359 mythread_cond_signal(&thr->cond); in worker_start()
385 mythread_cond_signal(&thr->cond); in worker_start()
411 mythread_cond_destroy(&thr->cond); in worker_start()
484 if (mythread_cond_init(&thr->cond)) in initialize_new_thread()
503 mythread_cond_destroy(&thr->cond); in initialize_new_thread()
654 &coder->cond, &coder->mutex, in wait_for_work()
657 mythread_cond_wait(&coder->cond, in wait_for_work()
[all …]
/dragonfly/sys/dev/drm/amd/powerplay/inc/
H A Dpp_debug.h37 #define PP_ASSERT_WITH_CODE(cond, msg, code) \ argument
39 if (!(cond)) { \
45 #define PP_ASSERT(cond, msg) \ argument
47 if (!(cond)) { \

12345678910>>...14