Home
last modified time | relevance | path

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

12345678910>>...13

/trueos/lib/libkse/thread/
HDthr_cond.c54 int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
55 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
73 _pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *cond_attr) in _pthread_cond_init() argument
80 if (cond == NULL) in _pthread_cond_init()
130 *cond = pcond; in _pthread_cond_init()
139 _pthread_cond_destroy(pthread_cond_t *cond) in _pthread_cond_destroy() argument
145 if (cond == NULL || *cond == NULL) in _pthread_cond_destroy()
149 THR_LOCK_ACQUIRE(curthread, &(*cond)->c_lock); in _pthread_cond_destroy()
155 cv = *cond; in _pthread_cond_destroy()
156 *cond = NULL; in _pthread_cond_destroy()
[all …]
/trueos/contrib/sendmail/include/sm/
HDassert.h66 # define SM_REQUIRE(cond) \ argument
67 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
68 "SM_REQUIRE(" #cond ") failed"), 0)))
70 # define SM_REQUIRE(cond) \ argument
71 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
75 # define SM_REQUIRE(cond) ((void) 0) argument
83 # define SM_ENSURE(cond) \ argument
84 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
85 "SM_ENSURE(" #cond ") failed"), 0)))
87 # define SM_ENSURE(cond) \ argument
[all …]
/trueos/contrib/apr/locks/unix/
HDthread_cond.c26 apr_thread_cond_t *cond = (apr_thread_cond_t *)data; in thread_cond_cleanup() local
29 rv = pthread_cond_destroy(&cond->cond); in thread_cond_cleanup()
38 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond, in apr_thread_cond_create() argument
48 if ((rv = pthread_cond_init(&new_cond->cond, NULL))) { in apr_thread_cond_create()
59 *cond = new_cond; in apr_thread_cond_create()
63 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond, in apr_thread_cond_wait() argument
68 rv = pthread_cond_wait(&cond->cond, &mutex->mutex); in apr_thread_cond_wait()
77 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, in apr_thread_cond_timedwait() argument
89 rv = pthread_cond_timedwait(&cond->cond, &mutex->mutex, &abstime); in apr_thread_cond_timedwait()
102 APR_DECLARE(apr_status_t) apr_thread_cond_signal(apr_thread_cond_t *cond) in apr_thread_cond_signal() argument
[all …]
/trueos/contrib/ntp/include/isc/
HDassertions.h79 #define ISC_REQUIRE(cond) \ argument
80 ((void) ((cond) || \
83 #cond), 0)))
85 #define ISC_REQUIRE(cond) ((void) 0) argument
89 #define ISC_ENSURE(cond) \ argument
90 ((void) ((cond) || \
93 #cond), 0)))
95 #define ISC_ENSURE(cond) ((void) 0) argument
99 #define ISC_INSIST(cond) \ argument
100 ((void) ((cond) || \
[all …]
/trueos/lib/libthr/thread/
HDthr_cond.c42 int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
43 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
45 static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
46 static int cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex,
48 static int cond_signal_common(pthread_cond_t *cond);
49 static int cond_broadcast_common(pthread_cond_t *cond);
67 cond_init(pthread_cond_t *cond, const pthread_condattr_t *cond_attr) in cond_init() argument
86 *cond = cvp; in cond_init()
92 init_static(struct pthread *thread, pthread_cond_t *cond) in init_static() argument
98 if (*cond == NULL) in init_static()
[all …]
/trueos/lib/libstdthreads/
HDcnd.c38 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument
41 if (pthread_cond_broadcast(cond) != 0) in cnd_broadcast()
47 cnd_destroy(cnd_t *cond) in cnd_destroy() argument
50 (void)pthread_cond_destroy(cond); in cnd_destroy()
54 cnd_init(cnd_t *cond) in cnd_init() argument
57 switch (pthread_cond_init(cond, NULL)) { in cnd_init()
68 cnd_signal(cnd_t *cond) in cnd_signal() argument
71 if (pthread_cond_signal(cond) != 0) in cnd_signal()
77 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, in cnd_timedwait() argument
81 switch (pthread_cond_timedwait(cond, mtx, ts)) { in cnd_timedwait()
[all …]
/trueos/contrib/gcc/
HDtree-ssa-loop-unswitch.c117 tree stmt, def, cond, use; in tree_may_unswitch_on() local
136 cond = COND_EXPR_COND (stmt); in tree_may_unswitch_on()
140 if (integer_zerop (cond) || integer_nonzerop (cond)) in tree_may_unswitch_on()
143 return cond; in tree_may_unswitch_on()
151 simplify_using_entry_checks (struct loop *loop, tree cond) in simplify_using_entry_checks() argument
161 && operand_equal_p (COND_EXPR_COND (stmt), cond, 0)) in simplify_using_entry_checks()
167 return cond; in simplify_using_entry_checks()
171 return cond; in simplify_using_entry_checks()
185 tree cond = NULL_TREE, stmt; in tree_unswitch_single_loop() local
220 if ((cond = tree_may_unswitch_on (bbs[i], loop))) in tree_unswitch_single_loop()
[all …]
HDtree-ssa-phiopt.c380 tree new, cond; in conditional_replacement() local
402 cond = COND_EXPR_COND (last_stmt (cond_bb)); in conditional_replacement()
404 if (TREE_CODE (cond) != SSA_NAME in conditional_replacement()
405 && !lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement()
409 if (!COMPARISON_CLASS_P (cond)) in conditional_replacement()
412 tmp = create_tmp_var (TREE_TYPE (cond), NULL); in conditional_replacement()
415 old_result = cond; in conditional_replacement()
416 cond = new_var; in conditional_replacement()
422 if (!lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement()
423 cond = fold_convert (TREE_TYPE (result), cond); in conditional_replacement()
[all …]
HDtree-if-conv.c169 tree cond; in tree_if_conversion() local
174 cond = bb->aux; in tree_if_conversion()
182 cond = tree_if_convert_stmt (loop, t, cond, &itr); in tree_if_conversion()
192 if (cond != NULL_TREE) in tree_if_conversion()
193 add_to_predicate_list (bb_n, cond); in tree_if_conversion()
218 tree_if_convert_stmt (struct loop * loop, tree t, tree cond, in tree_if_convert_stmt() argument
225 print_generic_stmt (dump_file, cond, TDF_SLIM); in tree_if_convert_stmt()
245 tree_if_convert_cond_expr (loop, t, cond, bsi); in tree_if_convert_stmt()
246 cond = NULL_TREE; in tree_if_convert_stmt()
252 return cond; in tree_if_convert_stmt()
[all …]
HDc-omp.c207 c_finish_omp_for (location_t locus, tree decl, tree init, tree cond, in c_finish_omp_for() argument
245 if (cond == NULL_TREE) in c_finish_omp_for()
254 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for()
255 elocus = EXPR_LOCATION (cond); in c_finish_omp_for()
257 if (TREE_CODE (cond) == LT_EXPR in c_finish_omp_for()
258 || TREE_CODE (cond) == LE_EXPR in c_finish_omp_for()
259 || TREE_CODE (cond) == GT_EXPR in c_finish_omp_for()
260 || TREE_CODE (cond) == GE_EXPR) in c_finish_omp_for()
262 tree op0 = TREE_OPERAND (cond, 0); in c_finish_omp_for()
263 tree op1 = TREE_OPERAND (cond, 1); in c_finish_omp_for()
[all …]
HDifcvt.c345 rtx test_if, cond; in cond_exec_get_condition() local
351 cond = XEXP (test_if, 0); in cond_exec_get_condition()
358 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition()
362 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition()
363 XEXP (cond, 1)); in cond_exec_get_condition()
366 return cond; in cond_exec_get_condition()
602 rtx jump, cond, cond_earliest; member
628 rtx cond = if_info->cond; in noce_emit_store_flag() local
632 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag()
633 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag()
[all …]
HDtree-ssa-forwprop.c178 forward_propagate_into_cond_1 (tree cond, tree *test_var_p) in forward_propagate_into_cond_1() argument
181 enum tree_code cond_code = TREE_CODE (cond); in forward_propagate_into_cond_1()
194 && TREE_CODE (TREE_OPERAND (cond, 0)) == SSA_NAME in forward_propagate_into_cond_1()
195 && CONSTANT_CLASS_P (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1()
196 && INTEGRAL_TYPE_P (TREE_TYPE (TREE_OPERAND (cond, 1))))) in forward_propagate_into_cond_1()
201 test_var = cond; in forward_propagate_into_cond_1()
203 test_var = TREE_OPERAND (cond, 0); in forward_propagate_into_cond_1()
247 t = int_const_binop (new_code, TREE_OPERAND (cond, 1), op1, 0); in forward_propagate_into_cond_1()
257 else if (TREE_CODE (cond) == SSA_NAME in forward_propagate_into_cond_1()
258 || integer_zerop (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1()
[all …]
HDloop-unswitch.c95 rtx seq, jump, cond; in compare_and_jump_seq() local
108 cond = XEXP (SET_SRC (pc_set (cinsn)), 0); in compare_and_jump_seq()
109 gcc_assert (GET_CODE (cond) == comp); in compare_and_jump_seq()
110 gcc_assert (rtx_equal_p (op0, XEXP (cond, 0))); in compare_and_jump_seq()
111 gcc_assert (rtx_equal_p (op1, XEXP (cond, 1))); in compare_and_jump_seq()
245 reversed_condition (rtx cond) in reversed_condition() argument
248 reversed = reversed_comparison_code (cond, NULL); in reversed_condition()
253 GET_MODE (cond), XEXP (cond, 0), in reversed_condition()
254 XEXP (cond, 1)); in reversed_condition()
268 rtx cond, rcond = NULL_RTX, conds, rconds, acond, cinsn; in unswitch_single_loop() local
[all …]
HDtree-ssa-threadedge.c302 tree cond = COND_EXPR_COND (TREE_OPERAND (stmt, 1)); in record_temporary_equivalences_from_stmts_at_dest() local
303 cond = fold (cond); in record_temporary_equivalences_from_stmts_at_dest()
304 if (cond == boolean_true_node) in record_temporary_equivalences_from_stmts_at_dest()
306 else if (cond == boolean_false_node) in record_temporary_equivalences_from_stmts_at_dest()
360 tree cond, cached_lhs; in simplify_control_stmt_condition() local
363 cond = COND_EXPR_COND (stmt); in simplify_control_stmt_condition()
365 cond = GOTO_DESTINATION (stmt); in simplify_control_stmt_condition()
367 cond = SWITCH_COND (stmt); in simplify_control_stmt_condition()
371 if (COMPARISON_CLASS_P (cond)) in simplify_control_stmt_condition()
376 op0 = TREE_OPERAND (cond, 0); in simplify_control_stmt_condition()
[all …]
HDpredict.c792 rtx cond; in bb_estimate_probability_locally() local
796 cond = get_condition (last_insn, NULL, false, false); in bb_estimate_probability_locally()
797 if (! cond) in bb_estimate_probability_locally()
803 if (COMPARISON_P (cond) in bb_estimate_probability_locally()
804 && ((REG_P (XEXP (cond, 0)) && REG_POINTER (XEXP (cond, 0))) in bb_estimate_probability_locally()
805 || (REG_P (XEXP (cond, 1)) && REG_POINTER (XEXP (cond, 1))))) in bb_estimate_probability_locally()
807 if (GET_CODE (cond) == EQ) in bb_estimate_probability_locally()
809 else if (GET_CODE (cond) == NE) in bb_estimate_probability_locally()
818 switch (GET_CODE (cond)) in bb_estimate_probability_locally()
823 cond == const0_rtx ? NOT_TAKEN : TAKEN); in bb_estimate_probability_locally()
[all …]
HDtree-ssa-uncprop.c86 tree cond = COND_EXPR_COND (stmt); in associate_equivalences_with_edges() local
95 if (TREE_CODE (cond) == SSA_NAME in associate_equivalences_with_edges()
96 && !SSA_NAME_OCCURS_IN_ABNORMAL_PHI (cond)) in associate_equivalences_with_edges()
99 equivalency->rhs = constant_boolean_node (1, TREE_TYPE (cond)); in associate_equivalences_with_edges()
100 equivalency->lhs = cond; in associate_equivalences_with_edges()
104 equivalency->rhs = constant_boolean_node (0, TREE_TYPE (cond)); in associate_equivalences_with_edges()
105 equivalency->lhs = cond; in associate_equivalences_with_edges()
109 else if (TREE_CODE (cond) == EQ_EXPR || TREE_CODE (cond) == NE_EXPR) in associate_equivalences_with_edges()
111 tree op0 = TREE_OPERAND (cond, 0); in associate_equivalences_with_edges()
112 tree op1 = TREE_OPERAND (cond, 1); in associate_equivalences_with_edges()
[all …]
/trueos/contrib/llvm/lib/Target/Sparc/
HDSparcInstrAliases.td15 // mov<cond> <ccreg> rs2, rd
16 multiclass cond_mov_alias<string cond, int condVal, string ccreg,
20 // mov<cond> (%icc|%xcc|%fcc0), rs2, rd
21 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg),
25 // mov<cond> (%icc|%xcc|%fcc0), simm11, rd
26 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg),
30 // fmovs<cond> (%icc|%xcc|%fcc0), $rs2, $rd
31 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovs", cond), ccreg),
35 // fmovd<cond> (%icc|%xcc|%fcc0), $rs2, $rd
36 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovd", cond), ccreg),
[all …]
/trueos/contrib/llvm/patches/
HDpatch-r275633-llvm-r223171-fix-vectorizer.diff63 + br label %for.cond
65 +for.cond:
75 + br label %for.cond
88 - br label %for.cond
92 -for.cond: ; preds = %for.body, %entry
97 -for.body: ; preds = %for.cond
110 - br label %for.cond
115 -for.end: ; preds = %for.cond
124 - br label %for.cond
128 -for.cond: ; preds = %for.body, %entry
[all …]
/trueos/sys/boot/ia64/efi/
HDstart.S66 (p6) br.cond.dpnt.few 9f
142 (p6) br.cond.dpnt.few 2f
171 (p6) br.cond.dptk 3f
179 (p6) br.cond.dptk 3f
194 (p6) br.cond.dpnt.few 2b
197 (p6) br.cond.dptk.few 3f
200 (p6) br.cond.dptk.few 4f
217 (p6) br.cond.dptk.few 5f
220 (p6) br.cond.dptk.few 6f
223 (p6) br.cond.dptk.few 2b
[all …]
/trueos/lib/libc/resolv/
HDres_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
/trueos/contrib/atf/atf-c/detail/
HDsanity.c59 atf_sanity_inv(const char *file, int line, const char *cond) in atf_sanity_inv() argument
61 fail("Invariant check failed at %s:%d: %s", file, line, cond); in atf_sanity_inv()
65 atf_sanity_pre(const char *file, int line, const char *cond) in atf_sanity_pre() argument
67 fail("Precondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_pre()
71 atf_sanity_post(const char *file, int line, const char *cond) in atf_sanity_post() argument
73 fail("Postcondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_post()
/trueos/lib/libc/ia64/string/
HDbcopy.S40 (p6) br.cond.spnt.few 5f
45 (p6) br.cond.spnt.few 2f // branch if same alignment
51 (p6) br.cond.dptk.few 1b // loop
55 (p6) br.cond.sptk.few 4f
64 (p7) br.cond.spnt.few 4f // go to main copy
65 br.cond.sptk.few 3b // more bytes to copy
71 (p6) br.cond.spnt.few 1b // byte copy the end
76 (p6) br.cond.spnt.few 4b // again
91 (p6) br.cond.spnt.few 6b
/trueos/contrib/apr/include/
HDapr_thread_cond.h59 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond,
77 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond,
96 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond,
108 APR_DECLARE(apr_status_t) apr_thread_cond_signal(apr_thread_cond_t *cond);
117 APR_DECLARE(apr_status_t) apr_thread_cond_broadcast(apr_thread_cond_t *cond);
123 APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond);
/trueos/sys/ia64/ia64/
HDlocore.S140 1: br.cond.sptk.few 1b
237 (p6) br.cond.dpnt.few 2f
275 (p6) br.cond.dpnt.few 3f
278 (p6) br.cond.dptk.few 4f
297 (p6) br.cond.dptk.few 5f
300 (p6) br.cond.dptk.few 6f
305 (p6) br.cond.dptk.few 2b // loop
307 br.cond.sptk.few 9f // done
313 br.cond.sptk.few 3b
319 br.cond.sptk.few 3b
[all …]
/trueos/contrib/ofed/management/opensm/complib/
HDcl_timer.c57 pthread_cond_t cond; member
86 pthread_cond_init(&gp_timer_prov->cond, NULL); in __cl_timer_prov_create()
107 pthread_cond_broadcast(&gp_timer_prov->cond); in __cl_timer_prov_destroy()
113 pthread_cond_destroy(&gp_timer_prov->cond); in __cl_timer_prov_destroy()
142 ret = pthread_cond_wait(&gp_timer_prov->cond, in __cl_timer_prov_cb()
153 pthread_cond_timedwait(&gp_timer_prov->cond, in __cl_timer_prov_cb()
200 pthread_cond_signal(&p_timer->cond); in __cl_timer_prov_cb()
236 pthread_cond_init(&p_timer->cond, NULL); in cl_timer_init()
254 pthread_cond_broadcast(&p_timer->cond); in cl_timer_destroy()
255 pthread_cond_destroy(&p_timer->cond); in cl_timer_destroy()
[all …]

12345678910>>...13