Home
last modified time | relevance | path

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

12345678910>>...35

/netbsd/src/lib/libc/include/isc/
Dassertions.h72 #define REQUIRE(cond) \ argument
73 ((void) ((cond) || \
75 #cond, 0), 0)))
76 #define REQUIRE_ERR(cond) \ argument
77 ((void) ((cond) || \
79 #cond, 1), 0)))
81 #define REQUIRE(cond) ((void) (cond)) argument
82 #define REQUIRE_ERR(cond) ((void) (cond)) argument
86 #define ENSURE(cond) \ argument
87 ((void) ((cond) || \
[all …]
/netbsd/src/external/bsd/libbind/dist/include/isc/
Dassertions.h70 #define REQUIRE(cond) \ argument
71 ((void) ((cond) || \
73 #cond, 0), 0)))
74 #define REQUIRE_ERR(cond) \ argument
75 ((void) ((cond) || \
77 #cond, 1), 0)))
79 #define REQUIRE(cond) ((void) (cond)) argument
80 #define REQUIRE_ERR(cond) ((void) (cond)) argument
84 #define ENSURE(cond) \ argument
85 ((void) ((cond) || \
[all …]
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/
Devthread_win32.c132 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local
133 if (!cond) in evthread_win32_condvar_alloc()
135 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc()
136 return cond; in evthread_win32_condvar_alloc()
142 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_free() local
144 mm_free(cond); in evthread_win32_condvar_free()
148 evthread_win32_condvar_signal(void *cond, int broadcast) in evthread_win32_condvar_signal() argument
150 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_signal() local
152 WakeAllConditionVariable_fn(cond); in evthread_win32_condvar_signal()
154 WakeConditionVariable_fn(cond); in evthread_win32_condvar_signal()
[all …]
Devthread-internal.h161 #define EVTHREAD_FREE_COND(cond) \ argument
163 if (cond) \
164 evthread_cond_fns_.free_condition((cond)); \
167 #define EVTHREAD_COND_SIGNAL(cond) \ argument
168 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
170 #define EVTHREAD_COND_BROADCAST(cond) \ argument
171 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 )
176 #define EVTHREAD_COND_WAIT(cond, lock) \ argument
177 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 )
180 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument
[all …]
Devthread_pthread.c108 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local
109 if (!cond) in evthread_posix_cond_alloc()
111 if (pthread_cond_init(cond, NULL)) { in evthread_posix_cond_alloc()
112 mm_free(cond); in evthread_posix_cond_alloc()
115 return cond; in evthread_posix_cond_alloc()
121 pthread_cond_t *cond = cond_; in evthread_posix_cond_free() local
122 pthread_cond_destroy(cond); in evthread_posix_cond_free()
123 mm_free(cond); in evthread_posix_cond_free()
129 pthread_cond_t *cond = cond_; in evthread_posix_cond_signal() local
132 r = pthread_cond_broadcast(cond); in evthread_posix_cond_signal()
[all …]
/netbsd/src/external/bsd/libevent/dist/
Devthread_win32.c133 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local
134 if (!cond) in evthread_win32_condvar_alloc()
136 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc()
137 return cond; in evthread_win32_condvar_alloc()
143 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_free() local
145 mm_free(cond); in evthread_win32_condvar_free()
149 evthread_win32_condvar_signal(void *cond, int broadcast) in evthread_win32_condvar_signal() argument
151 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_signal() local
153 WakeAllConditionVariable_fn(cond); in evthread_win32_condvar_signal()
155 WakeConditionVariable_fn(cond); in evthread_win32_condvar_signal()
[all …]
Devthread-internal.h161 #define EVTHREAD_FREE_COND(cond) \ argument
163 if (cond) \
164 evthread_cond_fns_.free_condition((cond)); \
167 #define EVTHREAD_COND_SIGNAL(cond) \ argument
168 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
170 #define EVTHREAD_COND_BROADCAST(cond) \ argument
171 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 )
176 #define EVTHREAD_COND_WAIT(cond, lock) \ argument
177 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 )
180 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument
[all …]
Devthread_pthread.c109 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local
110 if (!cond) in evthread_posix_cond_alloc()
112 if (pthread_cond_init(cond, NULL)) { in evthread_posix_cond_alloc()
113 mm_free(cond); in evthread_posix_cond_alloc()
116 return cond; in evthread_posix_cond_alloc()
122 pthread_cond_t *cond = cond_; in evthread_posix_cond_free() local
123 pthread_cond_destroy(cond); in evthread_posix_cond_free()
124 mm_free(cond); in evthread_posix_cond_free()
130 pthread_cond_t *cond = cond_; in evthread_posix_cond_signal() local
133 r = pthread_cond_broadcast(cond); in evthread_posix_cond_signal()
[all …]
/netbsd/src/tests/usr.bin/xlint/lint1/
Dop_colon.c18 test_merge_qualifiers(_Bool cond, int *p, const int *c, volatile int *v, in test_merge_qualifiers() argument
22 sink(cond ? p : p); in test_merge_qualifiers()
24 sink(cond ? p : c); in test_merge_qualifiers()
26 sink(cond ? p : v); in test_merge_qualifiers()
28 sink(cond ? p : cv); in test_merge_qualifiers()
31 sink(cond ? c : p); in test_merge_qualifiers()
33 sink(cond ? c : c); in test_merge_qualifiers()
35 sink(cond ? c : v); in test_merge_qualifiers()
37 sink(cond ? c : cv); in test_merge_qualifiers()
40 sink(cond ? v : p); in test_merge_qualifiers()
[all …]
Dexpr_binary.c172 op_colon(_Bool cond) in op_colon() argument
174 cond ? return_void() : return_void(); in op_colon()
176 cond ? return_void() : return_bool(); in op_colon()
178 cond ? return_void() : return_sou(); in op_colon()
180 cond ? return_void() : return_integer(); in op_colon()
182 cond ? return_void() : return_floating(); in op_colon()
184 cond ? return_void() : return_pointer(); in op_colon()
186 cond ? return_bool() : return_void(); in op_colon()
187 cond ? return_bool() : return_bool(); in op_colon()
189 cond ? return_bool() : return_sou(); in op_colon()
[all …]
Dmsg_141.c15 _Bool cond; variable
520 cond = 0x7fffffff < (-0x7fffffff - 1); in compare_s32()
521 cond = 0x7fffffff <= (-0x7fffffff - 1); in compare_s32()
522 cond = 0x7fffffff > (-0x7fffffff - 1); in compare_s32()
523 cond = 0x7fffffff >= (-0x7fffffff - 1); in compare_s32()
524 cond = 0x7fffffff == (-0x7fffffff - 1); in compare_s32()
525 cond = 0x7fffffff != (-0x7fffffff - 1); in compare_s32()
531 cond = 0xffffffffU < 0x00000000U; in compare_u32()
532 cond = 0xffffffffU <= 0x00000000U; in compare_u32()
533 cond = 0xffffffffU > 0x00000000U; in compare_u32()
[all …]
Dmsg_218.c9 int cond; variable
38 cond = s32 < 3000000000L; in compare_large_constant()
41 cond = 3000000000L < s32; in compare_large_constant()
44 cond = u32 < 3000000000L; in compare_large_constant()
47 cond = 3000000000L < u32; in compare_large_constant()
50 cond = s64 < 3000000000L; in compare_large_constant()
53 cond = 3000000000L < s64; in compare_large_constant()
56 cond = u64 < 3000000000L; in compare_large_constant()
59 cond = 3000000000L < u64; in compare_large_constant()
/netbsd/src/lib/libpthread/
Dpthread_cond.c72 pthread_cond_getclock(const pthread_cond_t *cond) in pthread_cond_getclock() argument
76 cond->ptc_magic == _PT_COND_MAGIC); in pthread_cond_getclock()
78 return cond->ptc_private ? in pthread_cond_getclock()
79 *(clockid_t *)cond->ptc_private : CLOCK_REALTIME; in pthread_cond_getclock()
83 pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) in pthread_cond_init() argument
86 return __libc_cond_init_stub(cond, attr); in pthread_cond_init()
91 cond->ptc_magic = _PT_COND_MAGIC; in pthread_cond_init()
92 cond->ptc_waiters = NULL; in pthread_cond_init()
93 cond->ptc_mutex = NULL; in pthread_cond_init()
95 cond->ptc_private = malloc(sizeof(clockid_t)); in pthread_cond_init()
[all …]
Dcnd.c41 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument
44 _DIAGASSERT(cond != NULL); in cnd_broadcast()
46 if (pthread_cond_broadcast(cond) == 0) in cnd_broadcast()
53 cnd_destroy(cnd_t *cond) in cnd_destroy() argument
56 _DIAGASSERT(cond != NULL); in cnd_destroy()
61 (void)pthread_cond_destroy(cond); in cnd_destroy()
65 cnd_init(cnd_t *cond) in cnd_init() argument
68 _DIAGASSERT(cond != NULL); in cnd_init()
70 if (pthread_cond_init(cond, NULL) == 0) in cnd_init()
77 cnd_signal(cnd_t *cond) in cnd_signal() argument
[all …]
/netbsd/src/external/public-domain/xz/dist/src/common/
Dmythread.h116 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 …]
/netbsd/src/sys/arch/hppa/spmath/
Ddfcmp.c55 unsigned int cond, unsigned int *status) in dbl_fcmp() argument
74 && (Exception(cond) || Dbl_isone_signaling(leftp1))) in dbl_fcmp()
78 && (Exception(cond) || Dbl_isone_signaling(rightp1))) ) in dbl_fcmp()
81 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
85 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
97 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
112 Set_status_cbit(Equal(cond)); in dbl_fcmp()
116 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
120 Set_status_cbit(Greaterthan(cond)); in dbl_fcmp()
127 Set_status_cbit(Equal(cond)); in dbl_fcmp()
[all …]
Dsfcmp.c55 unsigned int cond, unsigned int *status) in sgl_fcmp() argument
74 && (Exception(cond) || Sgl_isone_signaling(left))) in sgl_fcmp()
78 && (Exception(cond) || Sgl_isone_signaling(right)) ) ) in sgl_fcmp()
81 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
85 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
97 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
112 Set_status_cbit(Equal(cond)); in sgl_fcmp()
116 Set_status_cbit(Lessthan(cond)); in sgl_fcmp()
120 Set_status_cbit(Greaterthan(cond)); in sgl_fcmp()
127 Set_status_cbit(Equal(cond)); in sgl_fcmp()
[all …]
/netbsd/src/external/gpl3/gcc/dist/libgcc/config/
Dgthr-vxworks-cond.c38 __gthread_cond_init (__gthread_cond_t *cond) in __gthread_cond_init() argument
40 if (!cond) in __gthread_cond_init()
42 *cond = semBCreate (SEM_Q_FIFO, SEM_EMPTY); in __gthread_cond_init()
46 __gthread_cond_destroy (__gthread_cond_t *cond) in __gthread_cond_destroy() argument
48 if (!cond) in __gthread_cond_destroy()
50 return __CHECK_RESULT (semDelete (*cond)); in __gthread_cond_destroy()
54 __gthread_cond_broadcast (__gthread_cond_t *cond) in __gthread_cond_broadcast() argument
56 if (!cond) in __gthread_cond_broadcast()
59 return __CHECK_RESULT (semFlush (*cond)); in __gthread_cond_broadcast()
63 __gthread_cond_wait (__gthread_cond_t *cond, in __gthread_cond_wait() argument
[all …]
/netbsd/src/external/gpl3/gdb/dist/sim/igen/
Dld-decode.c246 decode_cond *cond = ZALLOC (decode_cond); in load_decode_table() local
249 set_bits (cond->mask, in load_decode_table()
257 cond->is_equal = 0; in load_decode_table()
258 set_bits (cond->value, in load_decode_table()
265 cond->is_equal = 1; in load_decode_table()
266 set_bits (cond->value, in load_decode_table()
273 cond->word_nr = in load_decode_table()
280 *last = cond; in load_decode_table()
296 decode_cond *cond; in decode_table_max_word_nr() local
299 for (cond = entry->conditions; cond != NULL; cond = cond->next) in decode_table_max_word_nr()
[all …]
/netbsd/src/sys/sys/
Dgcq.h299 #define _GCQ_GDQ_COND(var, h, ptr, rem, cond) \ argument
301 ((cond) ? (rem, true) : (var = NULL, false))) : \
303 #define _GCQ_GDQ_COND_TYPED(tvar, h, type, name, ptr, rem, cond) \ argument
305 type, name), ((cond) ? (rem, true) : (tvar = NULL, false))) : \
307 #define _GCQ_NP_COND(var, current, head, start, np, rem, cond) \ argument
309 (var = fn(np(current, head, start)), ((cond) ? (rem), true) : \
312 rem, cond) (np(current, head, start) != (start) ? \ argument
314 ((cond) ? (rem, true) : (var = NULL, false))) : \
350 #define GCQ_GOT_FIRST_COND(var, h, cond) \ argument
351 _GCQ_GDQ_COND(var, h, q_next, ((void)0), cond)
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/ia64/
Ddiv.md300 rtx cond = gen_reg_rtx (CCImode);
312 emit_insn (gen_recip_approx_rf (y, a, b, cond, status0));
314 emit_insn (gen_m2subrf4_cond (e, cond, one, b, y, zero, status1, trunc_off));
316 emit_insn (gen_m2addrf4_cond (y1, cond, y, y, e, zero, status1, trunc_off));
318 emit_insn (gen_m2addrf4_cond (y2, cond, y, y1, e, zero, status1, trunc_off));
320 emit_insn (gen_mulrf3_cond (q, cond, a, y2, zero, status1, trunc_sgl));
322 emit_insn (gen_m2subrf4_cond (r, cond, a, q, b, zero, status1, trunc_off));
324 emit_insn (gen_m2addrf4_cond (q_res, cond, q, r, y2, y, status0, trunc_sgl));
348 rtx cond = gen_reg_rtx (CCImode);
360 emit_insn (gen_recip_approx_rf (y, a, b, cond, status0));
[all …]
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/test/
Dregress_thread.c73 void *cond; member
81 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout()
91 EVTHREAD_COND_SIGNAL(cw->cond); in wake_one_timeout()
109 EVTHREAD_ALLOC_COND(cw.cond); in basic_thread()
111 assert(cw.cond); in basic_thread()
125 assert(EVTHREAD_COND_WAIT(cw.cond, cw.lock) == 0); in basic_thread()
140 EVTHREAD_FREE_COND(cw.cond); in basic_thread()
263 struct cond_wait *cond; member
275 EVLOCK_LOCK(rec->cond->lock, 0); in wait_for_condition()
277 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition()
[all …]
/netbsd/src/external/bsd/libevent/dist/test/
Dregress_thread.c75 void *cond; member
83 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout()
94 EVTHREAD_COND_SIGNAL(cw->cond);
113 EVTHREAD_ALLOC_COND(cw.cond); in basic_thread()
115 assert(cw.cond); in basic_thread()
129 assert(EVTHREAD_COND_WAIT(cw.cond, cw.lock) == 0); in basic_thread()
144 EVTHREAD_FREE_COND(cw.cond); in basic_thread()
267 struct cond_wait *cond; member
280 EVLOCK_LOCK(rec->cond->lock, 0);
282 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock,
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Difcvt.cc438 rtx test_if, cond; in cond_exec_get_condition() local
444 cond = XEXP (test_if, 0); in cond_exec_get_condition()
453 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition()
457 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition()
458 XEXP (cond, 1)); in cond_exec_get_condition()
461 return cond; in cond_exec_get_condition()
799 return reversed_comparison_code (if_info->cond, if_info->jump); in noce_reversed_cond_code()
830 rtx cond = if_info->cond; in noce_emit_store_flag() local
834 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag()
835 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag()
[all …]
/netbsd/src/external/gpl3/binutils/dist/binutils/
Dsysroff.info61 (cond "ptr->ep"
62 (cond "ptr->mt != MTYPE_ABS_LM"
65 (cond "segmented_p"
151 (cond "ptr->type==ED_TYPE_ENTRY || ptr->type==ED_TYPE_DATA"
153 (cond "ptr->type==ED_TYPE_CONST"
167 (cond "ptr->saf"
169 (cond "ptr->cpf"
189 (cond "ptr->op == OP_EXT_REF"
192 (cond "ptr->op == OP_SEC_REF"
199 (cond "ptr->op == OP_RELOC_ADDR"
[all …]

12345678910>>...35