| /dflybsd-src/lib/libthread_xu/thread/ |
| H A D | thr_cond.c | 77 int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex); 78 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, 80 static int cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, 82 static int cond_signal_common(pthread_cond_t *cond, int broadcast); 85 cond_init(pthread_cond_t *cond, const pthread_condattr_t *cond_attr) in cond_init() argument 106 *cond = pcond; in cond_init() 114 _cond_reinit(pthread_cond_t cond) 116 if (cond) { 117 _thr_umtx_init(&cond->c_lock); 120 cond->c_pshared = 0; [all …]
|
| /dflybsd-src/contrib/xz/src/common/ |
| H A D | mythread.h | 116 pthread_cond_t cond; member 235 ret = pthread_cond_init(&mycond->cond, &condattr); in mythread_cond_init() 253 return pthread_cond_init(&mycond->cond, NULL); in mythread_cond_init() 257 mythread_cond_destroy(mythread_cond *cond) in mythread_cond_destroy() argument 259 int ret = pthread_cond_destroy(&cond->cond); in mythread_cond_destroy() 265 mythread_cond_signal(mythread_cond *cond) in mythread_cond_signal() argument 267 int ret = pthread_cond_signal(&cond->cond); in mythread_cond_signal() 273 mythread_cond_wait(mythread_cond *cond, mythread_mutex *mutex) in mythread_cond_wait() argument 275 int ret = pthread_cond_wait(&cond->cond, mutex); in mythread_cond_wait() 283 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, in mythread_cond_timedwait() argument [all …]
|
| /dflybsd-src/stand/boot/common/ |
| H A D | commands.c | 515 struct cond { struct 520 static struct cond CondStack[32]; argument 534 struct cond *cond = &CondStack[CondIndex++]; in command_ifexists() local 536 cond->inherit = CurrentCondition; in command_ifexists() 539 cond->current = 0; in command_ifexists() 541 cond->current = 1; in command_ifexists() 543 CurrentCondition = (cond->inherit && cond->current); in command_ifexists() 560 struct cond *cond = &CondStack[CondIndex++]; in command_ifset() local 562 cond->inherit = CurrentCondition; in command_ifset() 565 cond->current = 1; in command_ifset() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/gcc/ |
| H A D | tree-ssa-loop-unswitch.c | 123 tree cond, use; in tree_may_unswitch_on() local 148 cond = build2 (gimple_cond_code (stmt), boolean_type_node, in tree_may_unswitch_on() 151 return cond; in tree_may_unswitch_on() 159 simplify_using_entry_checks (struct loop *loop, tree cond) in simplify_using_entry_checks() argument 169 && gimple_cond_code (stmt) == TREE_CODE (cond) in simplify_using_entry_checks() 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 [all …]
|
| H A D | loop-unswitch.c | 94 rtx seq, jump, cond; in compare_and_jump_seq() local 107 cond = XEXP (SET_SRC (pc_set (cinsn)), 0); in compare_and_jump_seq() 108 gcc_assert (GET_CODE (cond) == comp); in compare_and_jump_seq() 109 gcc_assert (rtx_equal_p (op0, XEXP (cond, 0))); in compare_and_jump_seq() 110 gcc_assert (rtx_equal_p (op1, XEXP (cond, 1))); in compare_and_jump_seq() 237 reversed_condition (rtx cond) in reversed_condition() argument 240 reversed = reversed_comparison_code (cond, NULL); in reversed_condition() 245 GET_MODE (cond), XEXP (cond, 0), in reversed_condition() 246 XEXP (cond, 1)); in reversed_condition() 259 rtx cond, rcond = NULL_RTX, conds, rconds, acond, cinsn; in unswitch_single_loop() local [all …]
|
| H A D | ifcvt.c | 396 rtx test_if, cond; in cond_exec_get_condition() local 402 cond = XEXP (test_if, 0); in cond_exec_get_condition() 409 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition() 413 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition() 414 XEXP (cond, 1)); in cond_exec_get_condition() 417 return cond; in cond_exec_get_condition() 739 rtx cond; member 789 rtx cond = if_info->cond; in noce_emit_store_flag() local 793 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag() 794 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag() [all …]
|
| H A D | tree-if-conv.c | 138 set_bb_predicate (basic_block bb, tree cond) in set_bb_predicate() argument 140 gcc_assert ((TREE_CODE (cond) == TRUTH_NOT_EXPR in set_bb_predicate() 141 && is_gimple_condexpr (TREE_OPERAND (cond, 0))) in set_bb_predicate() 142 || is_gimple_condexpr (cond)); in set_bb_predicate() 143 ((bb_predicate_p) bb->aux)->predicate = cond; in set_bb_predicate() 252 is_true_predicate (tree cond) in is_true_predicate() argument 254 return (cond == NULL_TREE in is_true_predicate() 255 || cond == boolean_true_node in is_true_predicate() 256 || integer_onep (cond)); in is_true_predicate() 272 parse_predicate (tree cond, tree *op0, tree *op1) in parse_predicate() argument [all …]
|
| H A D | tree-ssa-uninit.c | 322 gimple cond; member 411 one_pred->cond = cond_stmt; in convert_control_dep_chain_into_preds() 624 print_gimple_stmt (dump_file, one_pred->cond, 0, 0); in dump_predicates() 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() 1027 cond_lhs = gimple_cond_lhs (cond); in use_pred_not_overlap_with_undef_path_pred() 1028 cond_rhs = gimple_cond_rhs (cond); in use_pred_not_overlap_with_undef_path_pred() 1029 cmp_code = gimple_cond_code (cond); in use_pred_not_overlap_with_undef_path_pred() 1110 normalize_cond_1 (gimple cond, in normalize_cond_1() argument [all …]
|
| H A D | loop-iv.c | 1628 canon_condition (rtx cond) in canon_condition() argument 1635 code = GET_CODE (cond); in canon_condition() 1636 op0 = XEXP (cond, 0); in canon_condition() 1637 op1 = XEXP (cond, 1); in canon_condition() 1692 if (op0 != XEXP (cond, 0) in canon_condition() 1693 || op1 != XEXP (cond, 1) in canon_condition() 1694 || code != GET_CODE (cond) in canon_condition() 1695 || GET_MODE (cond) != SImode) in canon_condition() 1696 cond = gen_rtx_fmt_ee (code, SImode, op0, op1); in canon_condition() 1698 return cond; in canon_condition() [all …]
|
| H A D | tree-ssa-threadedge.c | 456 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 665 cond = simplify_control_stmt_condition (taken_edge, stmt, dummy_cond, in thread_around_empty_block() 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 [all …]
|
| H A D | tree-ssa-phiopt.c | 502 tree cond; in conditional_replacement() local 547 cond = fold_build2_loc (gimple_location (stmt), in conditional_replacement() 558 cond = fold_build1_loc (gimple_location (stmt), in conditional_replacement() 559 TRUTH_NOT_EXPR, TREE_TYPE (cond), cond); in conditional_replacement() 564 new_var = force_gimple_operand_gsi (&gsi, cond, true, NULL, true, in conditional_replacement() 638 gimple cond; in value_replacement() local 674 cond = last_stmt (cond_bb); in value_replacement() 675 code = gimple_cond_code (cond); in value_replacement() 696 if ((operand_equal_for_phi_arg_p (arg0, gimple_cond_lhs (cond)) in value_replacement() 697 && operand_equal_for_phi_arg_p (arg1, gimple_cond_rhs (cond))) in value_replacement() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/gcc/c-family/ |
| H A D | c-omp.c | 357 tree cond = TREE_VEC_ELT (condv, i); in c_finish_omp_for() local 396 if (cond == NULL_TREE) in c_finish_omp_for() 405 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for() 406 elocus = EXPR_LOCATION (cond); in c_finish_omp_for() 408 if (TREE_CODE (cond) == LT_EXPR in c_finish_omp_for() 409 || TREE_CODE (cond) == LE_EXPR in c_finish_omp_for() 410 || TREE_CODE (cond) == GT_EXPR in c_finish_omp_for() 411 || TREE_CODE (cond) == GE_EXPR in c_finish_omp_for() 412 || TREE_CODE (cond) == NE_EXPR in c_finish_omp_for() 413 || TREE_CODE (cond) == EQ_EXPR) in c_finish_omp_for() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/gcc/ |
| H A D | ifcvt.c | 431 rtx test_if, cond; in cond_exec_get_condition() local 437 cond = XEXP (test_if, 0); in cond_exec_get_condition() 444 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition() 448 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition() 449 XEXP (cond, 1)); in cond_exec_get_condition() 452 return cond; in cond_exec_get_condition() 790 return reversed_comparison_code (if_info->cond, if_info->jump); in noce_reversed_cond_code() 821 rtx cond = if_info->cond; in noce_emit_store_flag() local 825 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag() 826 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag() [all …]
|
| H A D | tree-if-conv.c | 228 set_bb_predicate (basic_block bb, tree cond) in set_bb_predicate() argument 230 gcc_assert ((TREE_CODE (cond) == TRUTH_NOT_EXPR in set_bb_predicate() 231 && is_gimple_condexpr (TREE_OPERAND (cond, 0))) in set_bb_predicate() 232 || is_gimple_condexpr (cond)); in set_bb_predicate() 233 ((struct bb_predicate *) bb->aux)->predicate = cond; in set_bb_predicate() 352 is_false_predicate (tree cond) in is_false_predicate() argument 354 return (cond != NULL_TREE in is_false_predicate() 355 && (cond == boolean_false_node in is_false_predicate() 356 || integer_zerop (cond))); in is_false_predicate() 362 is_true_predicate (tree cond) in is_true_predicate() argument [all …]
|
| H A D | tree-ssa-loop-unswitch.c | 194 tree cond, use; in tree_may_unswitch_on() local 224 cond = build2 (gimple_cond_code (stmt), boolean_type_node, in tree_may_unswitch_on() 227 return cond; in tree_may_unswitch_on() 235 simplify_using_entry_checks (struct loop *loop, tree cond) in simplify_using_entry_checks() argument 245 && gimple_cond_code (stmt) == TREE_CODE (cond) in simplify_using_entry_checks() 247 TREE_OPERAND (cond, 0), 0) in simplify_using_entry_checks() 249 TREE_OPERAND (cond, 1), 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 [all …]
|
| H A D | loop-iv.c | 1644 canon_condition (rtx cond) in canon_condition() argument 1650 code = GET_CODE (cond); in canon_condition() 1651 op0 = XEXP (cond, 0); in canon_condition() 1652 op1 = XEXP (cond, 1); in canon_condition() 1708 if (op0 != XEXP (cond, 0) in canon_condition() 1709 || op1 != XEXP (cond, 1) in canon_condition() 1710 || code != GET_CODE (cond) in canon_condition() 1711 || GET_MODE (cond) != SImode) in canon_condition() 1712 cond = gen_rtx_fmt_ee (code, SImode, op0, op1); in canon_condition() 1714 return cond; in canon_condition() [all …]
|
| H A D | ipa-predicate.h | 169 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 D | tree-ssa-threadedge.c | 440 tree cond, cached_lhs; in simplify_control_stmt_condition() local 512 cond = gimple_switch_index (as_a <gswitch *> (stmt)); in simplify_control_stmt_condition() 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 968 cond = simplify_control_stmt_condition (taken_edge, stmt, in thread_around_empty_blocks() 975 if (cond != NULL_TREE in thread_around_empty_blocks() 976 && (is_gimple_min_invariant (cond) in thread_around_empty_blocks() [all …]
|
| H A D | ipa-predicate.c | 289 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()
|
| /dflybsd-src/contrib/gcc-8.0/gcc/c-family/ |
| H A D | c-omp.c | 549 tree cond = TREE_VEC_ELT (condv, i); in c_finish_omp_for() local 600 if (cond == NULL_TREE) in c_finish_omp_for() 612 while (TREE_CODE (cond) == COMPOUND_EXPR) in c_finish_omp_for() 613 cond = TREE_OPERAND (cond, 1); in c_finish_omp_for() 615 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for() 616 elocus = EXPR_LOCATION (cond); in c_finish_omp_for() 618 if (TREE_CODE (cond) == LT_EXPR in c_finish_omp_for() 619 || TREE_CODE (cond) == LE_EXPR in c_finish_omp_for() 620 || TREE_CODE (cond) == GT_EXPR in c_finish_omp_for() 621 || TREE_CODE (cond) == GE_EXPR in c_finish_omp_for() [all …]
|
| /dflybsd-src/contrib/zstd/lib/common/ |
| H A D | threading.c | 103 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()
|
| /dflybsd-src/lib/libc/resolv/ |
| H A D | res_debug.h | 22 # 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
|
| /dflybsd-src/contrib/bmake/ |
| H A D | FILES | 20 cond.c 97 unit-tests/cond-cmp-numeric-eq.exp 98 unit-tests/cond-cmp-numeric-eq.mk 99 unit-tests/cond-cmp-numeric-ge.exp 100 unit-tests/cond-cmp-numeric-ge.mk 101 unit-tests/cond-cmp-numeric-gt.exp 102 unit-tests/cond-cmp-numeric-gt.mk 103 unit-tests/cond-cmp-numeric-le.exp 104 unit-tests/cond-cmp-numeric-le.mk 105 unit-tests/cond-cmp-numeric-lt.exp [all …]
|
| /dflybsd-src/contrib/xz/src/liblzma/common/ |
| H A D | stream_encoder_mt.c | 92 mythread_cond cond; member 176 mythread_cond cond; member 191 mythread_cond_signal(&thr->coder->cond); in worker_error() 254 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_encode() 306 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_encode() 359 mythread_cond_signal(&thr->cond); in worker_start() 366 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_start() 385 mythread_cond_signal(&thr->cond); in worker_start() 405 mythread_cond_signal(&thr->coder->cond); in worker_start() 411 mythread_cond_destroy(&thr->cond); in worker_start() [all …]
|
| /dflybsd-src/sys/dev/drm/amd/powerplay/inc/ |
| H A D | pp_debug.h | 37 #define PP_ASSERT_WITH_CODE(cond, msg, code) \ argument 39 if (!(cond)) { \ 45 #define PP_ASSERT(cond, msg) \ argument 47 if (!(cond)) { \
|