Home
last modified time | relevance | path

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

12345678910>>...65

/netbsd-src/lib/libc/include/isc/
H A 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/
H A 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/
H A 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 …]
/netbsd-src/external/bsd/libevent/dist/
H A 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 …]
H A 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 …]
H A 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/
H A 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 …]
H A 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 …]
/netbsd-src/lib/libpthread/
H A Dpthread_cond.c68 pthread_cond_getclock(const pthread_cond_t *cond) in pthread_cond_getclock() argument
72 cond->ptc_magic == _PT_COND_MAGIC); in pthread_cond_getclock()
74 return cond->ptc_private ? in pthread_cond_getclock()
75 *(clockid_t *)cond->ptc_private : CLOCK_REALTIME; in pthread_cond_getclock()
79 pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) in pthread_cond_init() argument
82 return __libc_cond_init_stub(cond, attr); in pthread_cond_init()
87 cond->ptc_magic = _PT_COND_MAGIC; in pthread_cond_init()
88 cond->ptc_waiters = NULL; in pthread_cond_init()
89 cond->ptc_mutex = NULL; in pthread_cond_init()
91 cond->ptc_private = malloc(sizeof(clockid_t)); in pthread_cond_init()
[all …]
H A 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/tests/usr.bin/indent/
H A Dopt_bl_br.c165 if (cond) in function()
169 else if (cond) in function()
184 if(cond){} in comments()
186 if (cond) in comments()
189 if (cond) /* comment */ in comments()
192 if (cond) in comments()
196 if (cond) in comments()
201 if (cond) // comment in comments()
210 if (cond) in comments()
214 if (cond) in comments()
[all...]
H A Dpsym_if_expr_stmt_else.c14 example(_Bool cond) in example() argument
16 if (cond) {} in example()
17 else if (cond) {} in example()
18 else if (cond) i++; in example()
25 example(_Bool cond) in example() argument
27 if (cond) { in example()
29 else if (cond) { in example()
31 else if (cond) in example()
44 example(_Bool cond) in example() argument
46 if (cond) in example()
68 example(_Bool cond) example() argument
[all...]
H A Dlsym_comment.c661 if (cond) /* comment */ in function()
662 if (cond) /* comment */ in function()
663 if (cond) /* comment */ in function()
664 if (cond) /* comment */ in function()
665 if (cond) /* comment */ in function()
714 if (cond) /* comment */ in function()
715 if (cond) /* comment */ in function()
716 if (cond) /* comment */ in function()
717 if (cond) /* comment */ in function()
718 if (cond) /* commen in function()
[all...]
/netbsd-src/external/gpl2/texinfo/dist/makeinfo/tests/
H A Dcond8 ../makeinfo -o cond.out $srcdir/cond.txi || exit 1
9 egrep 'This is (ifnothtml|ifinfo|ifnottex) text' cond.out >/dev/null \
11 test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3
14 ../makeinfo --no-split --html -o cond.out $srcdir/cond.txi || exit 1
15 egrep 'This is (html|ifhtml|ifnotinfo|ifnottex) text' cond.out >/dev/null \
17 test `fgrep ' text.' cond.out | wc -l` -eq 4 || exit 3
20 ../makeinfo --no-ifhtml --no-ifinfo --no-iftex -o cond.out $srcdir/cond.txi || exit 1
21 egrep 'This is ifnot(html|info|tex) text' cond.out >/dev/null \
23 test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3
28 ../makeinfo --ifhtml --ifinfo --iftex -o cond.out $srcdir/cond.txi || exit 1
[all …]
/netbsd-src/external/public-domain/xz/dist/src/common/
H A 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/external/apache2/llvm/dist/llvm/lib/Target/Sparc/
H A DSparcInstrAliases.td14 // mov<cond> <ccreg> rs2, rd
15 multiclass intcond_mov_alias<string cond, int condVal, string ccreg,
19 // mov<cond> (%icc|%xcc), rs2, rd
20 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg),
24 // mov<cond> (%icc|%xcc), simm11, rd
25 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg),
29 // fmovs<cond> (%icc|%xcc), $rs2, $rd
30 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovs", cond), ccreg),
34 // fmovd<cond> (%icc|%xcc), $rs2, $rd
35 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovd", cond), ccreg),
[all …]
/netbsd-src/sys/arch/hppa/spmath/
H A 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 …]
H A 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/
H A 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/gcc.old/dist/libgcc/config/
H A Dgthr-vxworks-cond.c35 __gthread_cond_init (__gthread_cond_t *cond) in __gthread_cond_init() argument
37 if (!cond) in __gthread_cond_init()
39 *cond = semBCreate (SEM_Q_FIFO, SEM_EMPTY); in __gthread_cond_init()
43 __gthread_cond_destroy (__gthread_cond_t *cond) in __gthread_cond_destroy() argument
45 if (!cond) in __gthread_cond_destroy()
47 return __CHECK_RESULT (semDelete (*cond)); in __gthread_cond_destroy()
51 __gthread_cond_broadcast (__gthread_cond_t *cond) in __gthread_cond_broadcast() argument
53 if (!cond) in __gthread_cond_broadcast()
56 return __CHECK_RESULT (semFlush (*cond)); in __gthread_cond_broadcast()
60 __gthread_cond_wait (__gthread_cond_t *cond, in __gthread_cond_wait() argument
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/include/isc/
H A Dassertions.h46 #define ISC_REQUIRE(cond) \ argument
47 ((void)((cond) || \
49 isc_assertiontype_require, #cond), \
52 #define ISC_ENSURE(cond) \ argument
53 ((void)((cond) || \
55 isc_assertiontype_ensure, #cond), \
58 #define ISC_INSIST(cond) \ argument
59 ((void)((cond) || \
61 isc_assertiontype_insist, #cond), \
64 #define ISC_INVARIANT(cond) \ argument
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
H A Dassertions.h50 #define ISC_REQUIRE(cond) \ argument
51 ((void)(ISC_LIKELY(cond) || \
53 isc_assertiontype_require, #cond), \
56 #define ISC_ENSURE(cond) \ argument
57 ((void)(ISC_LIKELY(cond) || \
59 isc_assertiontype_ensure, #cond), \
62 #define ISC_INSIST(cond) \ argument
63 ((void)(/*CONSTCOND*/ISC_LIKELY(cond) || \
65 isc_assertiontype_insist, #cond), \
68 #define ISC_INVARIANT(cond) \ argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMips64r6InstrInfo.td209 def : MipsPat<(select i64:$cond, i64:$t, i64:$f),
210 (OR64 (SELNEZ64 i64:$t, i64:$cond),
211 (SELEQZ64 i64:$f, i64:$cond))>,
213 def : MipsPat<(select (i32 (seteq i64:$cond, immz)), i64:$t, i64:$f),
214 (OR64 (SELEQZ64 i64:$t, i64:$cond),
215 (SELNEZ64 i64:$f, i64:$cond))>,
217 def : MipsPat<(select (i32 (setne i64:$cond, immz)), i64:$t, i64:$f),
218 (OR64 (SELNEZ64 i64:$t, i64:$cond),
219 (SELEQZ64 i64:$f, i64:$cond))>,
221 def : MipsPat<(select (i32 (seteq i64:$cond, immZExt16_64:$imm)), i64:$t, i64:$f),
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86InstrCMovSetCC.td20 : I<0x40, MRMSrcRegCC, (outs GR16:$dst), (ins GR16:$src1, GR16:$src2, ccode:$cond),
21 "cmov${cond}{w}\t{$src2, $dst|$dst, $src2}",
23 (X86cmov GR16:$src1, GR16:$src2, timm:$cond, EFLAGS))]>,
26 : I<0x40, MRMSrcRegCC, (outs GR32:$dst), (ins GR32:$src1, GR32:$src2, ccode:$cond),
27 "cmov${cond}{l}\t{$src2, $dst|$dst, $src2}",
29 (X86cmov GR32:$src1, GR32:$src2, timm:$cond, EFLAGS))]>,
32 :RI<0x40, MRMSrcRegCC, (outs GR64:$dst), (ins GR64:$src1, GR64:$src2, ccode:$cond),
33 "cmov${cond}{q}\t{$src2, $dst|$dst, $src2}",
35 (X86cmov GR64:$src1, GR64:$src2, timm:$cond, EFLAGS))]>, TB;
41 : I<0x40, MRMSrcMemCC, (outs GR16:$dst), (ins GR16:$src1, i16mem:$src2, ccode:$cond),
[all …]
/netbsd-src/sys/sys/
H A 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 …]

12345678910>>...65