/third_party/python/Python/ |
D | condvar.h | 138 PyCOND_INIT(PyCOND_T *cv) in PyCOND_INIT() argument 144 cv->sem = CreateSemaphore(NULL, 0, 100000, NULL); in PyCOND_INIT() 145 if (cv->sem==NULL) in PyCOND_INIT() 147 cv->waiting = 0; in PyCOND_INIT() 152 PyCOND_FINI(PyCOND_T *cv) in PyCOND_FINI() argument 154 return CloseHandle(cv->sem) ? 0 : -1; in PyCOND_FINI() 161 _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) in _PyCOND_WAIT_MS() argument 164 cv->waiting++; in _PyCOND_WAIT_MS() 170 wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); in _PyCOND_WAIT_MS() 173 --cv->waiting; in _PyCOND_WAIT_MS() [all …]
|
/third_party/pulseaudio/src/tests/ |
D | volume-test.c | 34 pa_cvolume cv; in START_TEST() local 55 map.channels = cv.channels = 2; in START_TEST() 62 pa_cvolume_set(&cv, 2, v); in START_TEST() 64 … pa_log_debug("Volume: %3i [%s]", v, pa_cvolume_snprint_verbose(s, sizeof(s), &cv, &map, true)); in START_TEST() 67 for (cv.values[0] = PA_VOLUME_MUTED; cv.values[0] <= PA_VOLUME_NORM*2; cv.values[0] += 4096) in START_TEST() 68 … for (cv.values[1] = PA_VOLUME_MUTED; cv.values[1] <= PA_VOLUME_NORM*2; cv.values[1] += 4096) { in START_TEST() 72 pa_cvolume_snprint_verbose(s, sizeof(s), &cv, &map, true), in START_TEST() 73 pa_cvolume_get_balance(&cv, &map)); in START_TEST() 76 … for (cv.values[0] = PA_VOLUME_MUTED+4096; cv.values[0] <= PA_VOLUME_NORM*2; cv.values[0] += 4096) in START_TEST() 77 for (cv.values[1] = PA_VOLUME_MUTED; cv.values[1] <= PA_VOLUME_NORM*2; cv.values[1] += 4096) in START_TEST() [all …]
|
D | mult-s16-test.c | 33 static inline int32_t pa_mult_s16_volume_32(int16_t v, int32_t cv) { in pa_mult_s16_volume_32() argument 39 int32_t hi = cv >> 16; in pa_mult_s16_volume_32() 40 int32_t lo = cv & 0xFFFF; in pa_mult_s16_volume_32() 44 static inline int32_t pa_mult_s16_volume_64(int16_t v, int32_t cv) { in pa_mult_s16_volume_64() argument 46 return (v * (int64_t) cv) >> 16; in pa_mult_s16_volume_64()
|
/third_party/python/Lib/ |
D | _osx_support.py | 143 def _save_modified_value(_config_vars, cv, newvalue): argument 146 oldvalue = _config_vars.get(cv, '') 147 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 148 _config_vars[_INITPRE + cv] = oldvalue 149 _config_vars[cv] = newvalue 251 for cv in _COMPILER_CONFIG_VARS: 252 if cv in _config_vars and cv not in os.environ: 253 cv_split = _config_vars[cv].split() 254 cv_split[0] = cc if cv != 'CXX' else cc + '++' 255 _save_modified_value(_config_vars, cv, ' '.join(cv_split)) [all …]
|
D | turtle.py | 470 img = TK.PhotoImage(width=1, height=1, master=self.cv) 478 return TK.PhotoImage(file=filename, master=self.cv) 480 def __init__(self, cv): argument 481 self.cv = cv 482 if isinstance(cv, ScrolledCanvas): 483 w = self.cv.canvwidth 484 h = self.cv.canvheight 486 w = int(self.cv.cget("width")) 487 h = int(self.cv.cget("height")) 488 self.cv.config(scrollregion = (-w//2, -h//2, w//2, h//2 )) [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
D | conditionvariable_test.cpp | 26 marl::ConditionVariable cv; in TEST_F() local 31 cv.wait(lock, [&] { in TEST_F() 37 cv.notify_one(); in TEST_F() 49 cv.notify_one(); in TEST_F() 50 cv.wait(lock, [&] { in TEST_F() 69 marl::ConditionVariable cv; in TEST_P() local 74 cv.wait(lock, [&] { in TEST_P() 80 cv.notify_one(); in TEST_P() 92 cv.notify_one(); in TEST_P() 93 cv.wait(lock, [&] { in TEST_P() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | mix.c | 228 int32_t cv = m->linear[channel].i; in pa_mix_generic_s16ne() local 230 if (PA_LIKELY(cv > 0)) in pa_mix_generic_s16ne() 231 sum += pa_mult_s16_volume(*((int16_t*) m->ptr), cv); in pa_mix_generic_s16ne() 267 int32_t cv = m->linear[channel].i; in pa_mix_s16re_c() local 269 if (PA_LIKELY(cv > 0)) in pa_mix_s16re_c() 270 sum += pa_mult_s16_volume(PA_INT16_SWAP(*((int16_t*) m->ptr)), cv); in pa_mix_s16re_c() 293 int32_t cv = m->linear[channel].i; in pa_mix_s32ne_c() local 296 if (PA_LIKELY(cv > 0)) { in pa_mix_s32ne_c() 298 v = (v * cv) >> 16; in pa_mix_s32ne_c() 323 int32_t cv = m->linear[channel].i; in pa_mix_s32re_c() local [all …]
|
D | cli-text.c | 199 cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], in pa_sink_list_to_string() local 244 pa_cvolume_snprint_verbose(cv, in pa_sink_list_to_string() 245 sizeof(cv), in pa_sink_list_to_string() 313 cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], in pa_source_list_to_string() local 355 pa_cvolume_snprint_verbose(cv, in pa_source_list_to_string() 356 sizeof(cv), in pa_source_list_to_string() 429 …char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], cm[PA_CHANNEL_MAP_SNPRINT… in pa_source_output_list_to_string() local 447 … pa_cvolume_snprint_verbose(cv, sizeof(cv), &v, &o->channel_map, true), in pa_source_output_list_to_string() 526 …char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cv[PA_CVOLUME_SNPRINT_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX], *… in pa_sink_input_list_to_string() local 544 … pa_cvolume_snprint_verbose(cv, sizeof(cv), &v, &i->channel_map, true), in pa_sink_input_list_to_string() [all …]
|
/third_party/python/Include/ |
D | dynamic_annotations.h | 106 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) \ argument 107 AnnotateCondVarWait(__FILE__, __LINE__, cv, lock) 111 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) \ argument 112 AnnotateCondVarWait(__FILE__, __LINE__, cv, NULL) 116 #define _Py_ANNOTATE_CONDVAR_SIGNAL(cv) \ argument 117 AnnotateCondVarSignal(__FILE__, __LINE__, cv) 120 #define _Py_ANNOTATE_CONDVAR_SIGNAL_ALL(cv) \ argument 121 AnnotateCondVarSignalAll(__FILE__, __LINE__, cv) 336 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) /* empty */ argument 337 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) /* empty */ argument [all …]
|
/third_party/musl/libc-test/src/regression/ |
D | pthread_cond_wait-cancel_ignored.c | 11 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable 17 pthread_cond_signal(&cv); in cleanup() 25 pthread_cond_signal(&cv); in waiter() 27 while (waiting) pthread_cond_wait(&cv, &mx); in waiter() 39 while (!waiting) pthread_cond_wait(&cv, &mx); in main() 46 while (waiting && !pthread_cond_timedwait(&cv, &mx, &ts)); in main() 48 pthread_cond_signal(&cv); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
D | mutex.h | 46 MARL_NO_EXPORT inline void wait_locked(std::condition_variable& cv, in wait_locked() argument 49 cv.wait(lock, std::forward<Predicate>(p)); in wait_locked() 55 MARL_NO_EXPORT inline bool wait_until_locked(std::condition_variable& cv, in wait_until_locked() argument 59 auto res = cv.wait_until(lock, std::forward<Time>(time), in wait_until_locked() 80 inline void wait(std::condition_variable& cv, Predicate&& p) { in wait() argument 81 cv.wait(_, std::forward<Predicate>(p)); in wait() 86 inline bool wait_until(std::condition_variable& cv, in wait_until() argument 89 return cv.wait_until(_, std::forward<Time>(time), in wait_until()
|
D | event.h | 122 ConditionVariable cv; member 132 : cv(allocator), mode(mode), signalled(initialState) {} in Shared() 141 cv.notify_one(); in signal() 143 cv.notify_all(); in signal() 152 cv.wait(lock, [&] { return signalled; }); in wait() 162 if (!cv.wait_for(lock, duration, [&] { return signalled; })) { in wait_for() 175 if (!cv.wait_until(lock, timeout, [&] { return signalled; })) { in wait_until()
|
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
D | cipher_aes_hw_s390x.inc | 71 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 73 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 92 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 93 adat->plat.s390x.param.kmo_kmf.cv, 98 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 103 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen); 128 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 131 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp; 132 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp; 151 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, [all …]
|
/third_party/openssl/providers/implementations/ciphers/ |
D | cipher_aes_hw_s390x.inc | 72 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 74 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 93 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 94 adat->plat.s390x.param.kmo_kmf.cv, 99 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 104 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen); 130 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 133 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp; 134 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp; 153 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, [all …]
|
/third_party/libwebsockets/lib/misc/ |
D | lws-struct-sqlite.c | 35 lws_struct_sq3_deser_cb(void *priv, int cols, char **cv, char **cn) in lws_struct_sq3_deser_cb() argument 57 if (!cv[n] || strcmp(cn[n], map->colname)) in lws_struct_sq3_deser_cb() 65 *pc = (signed char)atoi(cv[n]); in lws_struct_sq3_deser_cb() 71 *ps = (short)atoi(cv[n]); in lws_struct_sq3_deser_cb() 77 *pi = (int)atoll(cv[n]); /* 32-bit OS */ in lws_struct_sq3_deser_cb() 83 *pl = (long)atoll(cv[n]); /* 32-bit OS */ in lws_struct_sq3_deser_cb() 89 *pll = atoll(cv[n]); in lws_struct_sq3_deser_cb() 97 *pc = (unsigned char)(unsigned int)atoi(cv[n]); in lws_struct_sq3_deser_cb() 103 *ps = (unsigned short)atoi(cv[n]); in lws_struct_sq3_deser_cb() 109 *pi = (unsigned int)atoi(cv[n]); in lws_struct_sq3_deser_cb() [all …]
|
/third_party/ffmpeg/libavutil/ |
D | softfloat.h | 247 int sv, cv; in av_sincos_sf() local 252 cv = av_costbl_1_sf[idx & 0xf]; in av_sincos_sf() 253 cv = (cv ^ sign) - sign; in av_sincos_sf() 264 idx = (int)(((int64_t)cv * ct - (int64_t)sv * st + 0x20000000) >> 30); in av_sincos_sf() 266 sv = (int)(((int64_t)cv * st + (int64_t)sv * ct + 0x20000000) >> 30); in av_sincos_sf() 268 cv = idx; in av_sincos_sf() 274 idx = (int)(((int64_t)cv * ct - (int64_t)sv * st + 0x20000000) >> 30); in av_sincos_sf() 276 sv = (int)(((int64_t)cv * st + (int64_t)sv * ct + 0x20000000) >> 30); in av_sincos_sf() 277 cv = idx; in av_sincos_sf() 288 *c = (int)(((int64_t)cv * ct - (int64_t)sv * st + 0x20000000) >> 30); in av_sincos_sf() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | SoftCache.java | 57 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 58 if(cv.isNull()) { in getInstance() 61 V value = cv.get(); in getInstance() 68 return cv.resetIfCleared(value); in getInstance() 86 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 87 return cv.resetIfCleared(value); in getInstance()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SoftCache.java | 55 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 56 if(cv.isNull()) { in getInstance() 59 V value = cv.get(); in getInstance() 66 return cv.resetIfCleared(value); in getInstance() 84 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 85 return cv.resetIfCleared(value); in getInstance()
|
/third_party/python/Lib/test/ |
D | test__osx_support.py | 24 for cv in ('CFLAGS', 'LDFLAGS', 'CPPFLAGS', 28 if cv in self.env: 29 self.env.unset(cv) 79 cv = 'CC' 81 _osx_support._save_modified_value(config_vars, cv, newvalue) 94 cv = 'CC' 96 _osx_support._save_modified_value(config_vars, cv, newvalue) 104 cv = 'CC' 106 _osx_support._save_modified_value(config_vars, cv, newvalue)
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
D | mutex_test.cc | 73 absl::CondVar cv; member 175 cxt->cv.Wait(&cxt->mu); in TestSignalAll() 180 cxt->cv.SignalAll(); in TestSignalAll() 193 cxt->cv.Wait(&cxt->mu); in TestSignal() 198 cxt->cv.Signal(); in TestSignal() 210 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(100)); in TestCVTimeout() 215 cxt->cv.SignalAll(); in TestCVTimeout() 234 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 247 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 258 cxt->cv.Signal(); in TestTime() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 153 public boolean appendUnit(TimeUnit unit, int count, int cv, in appendUnit() argument 176 appendCount(unit, false, false, count, cv, useCountSep, in appendUnit() 183 if (cv == ECountVariant.HALF_FRACTION && dr.halfSupport != null) { in appendUnit() 193 cv = ECountVariant.DECIMAL1; in appendUnit() 199 int form = computeForm(unit, count, cv, multiple && last); in appendUnit() 229 int suffixIndex = appendCount(unit, omitCount, useDigitPrefix, count, cv, in appendUnit() 261 int count, int cv, boolean useSep, in appendCount() argument 263 if (cv == ECountVariant.HALF_FRACTION && dr.halves == null) { in appendCount() 264 cv = ECountVariant.INTEGER; in appendCount() 272 switch (cv) { in appendCount() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 151 public boolean appendUnit(TimeUnit unit, int count, int cv, in appendUnit() argument 174 appendCount(unit, false, false, count, cv, useCountSep, in appendUnit() 181 if (cv == ECountVariant.HALF_FRACTION && dr.halfSupport != null) { in appendUnit() 191 cv = ECountVariant.DECIMAL1; in appendUnit() 197 int form = computeForm(unit, count, cv, multiple && last); in appendUnit() 227 int suffixIndex = appendCount(unit, omitCount, useDigitPrefix, count, cv, in appendUnit() 259 int count, int cv, boolean useSep, in appendCount() argument 261 if (cv == ECountVariant.HALF_FRACTION && dr.halves == null) { in appendCount() 262 cv = ECountVariant.INTEGER; in appendCount() 270 switch (cv) { in appendCount() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/sb/ |
D | sb_expr.cpp | 411 literal dv, cv = v0->get_const_value(); in fold_alu_op1() local 412 apply_alu_src_mod(n.bc, 0, cv); in fold_alu_op1() 415 case ALU_OP1_CEIL: dv = ceilf(cv.f); break; in fold_alu_op1() 416 case ALU_OP1_COS: dv = cos(cv.f * 2.0f * M_PI); break; in fold_alu_op1() 417 case ALU_OP1_EXP_IEEE: dv = exp2f(cv.f); break; in fold_alu_op1() 418 case ALU_OP1_FLOOR: dv = floorf(cv.f); break; in fold_alu_op1() 419 case ALU_OP1_FLT_TO_INT: dv = (int)cv.f; break; // FIXME: round modes ???? in fold_alu_op1() 420 case ALU_OP1_FLT_TO_INT_FLOOR: dv = (int32_t)floorf(cv.f); break; in fold_alu_op1() 421 case ALU_OP1_FLT_TO_INT_RPI: dv = (int32_t)floorf(cv.f + 0.5f); break; in fold_alu_op1() 422 case ALU_OP1_FLT_TO_INT_TRUNC: dv = (int32_t)truncf(cv.f); break; in fold_alu_op1() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Compiler.h | 419 void AnnotateHappensAfter(const char *file, int line, const volatile void *cv); 420 void AnnotateHappensBefore(const char *file, int line, const volatile void *cv); 430 # define TsanHappensBefore(cv) AnnotateHappensBefore(__FILE__, __LINE__, cv) argument 433 # define TsanHappensAfter(cv) AnnotateHappensAfter(__FILE__, __LINE__, cv) argument 441 # define TsanHappensBefore(cv) argument 442 # define TsanHappensAfter(cv) argument
|
/third_party/mesa3d/src/nouveau/codegen/lib/ |
D | gk104.asm | 100 $p1 suldgb b128 $r0q cv zero u8 g[$r4d] $r2 $p0 107 $p1 suldgb b128 $r0q cv zero u8 g[$r4d] $r2 $p0 123 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 139 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 150 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 161 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 173 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 182 $p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0 191 $p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0 209 $p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0 [all …]
|