Searched refs:prev_i (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Modules/ |
D | audioop.c | 1098 int chan, d, *prev_i, *cur_i, cur_o; in audioop_ratecv() local 1150 prev_i = (int *) malloc(nchannels * sizeof(int)); in audioop_ratecv() 1152 if (prev_i == NULL || cur_i == NULL) { in audioop_ratecv() 1162 prev_i[chan] = cur_i[chan] = 0; in audioop_ratecv() 1186 "ii:ratecv", &prev_i[chan], in audioop_ratecv() 1227 prev_i[chan], in audioop_ratecv() 1247 prev_i[chan] = cur_i[chan]; in audioop_ratecv() 1258 (double)weightB * (double)prev_i[chan]) / in audioop_ratecv() 1266 cur_o = (int)(((double)prev_i[chan] * (double)d + in audioop_ratecv() 1281 if (prev_i != NULL) in audioop_ratecv() [all …]
|
/external/python/cpython3/Modules/ |
D | audioop.c | 1323 int chan, d, *prev_i, *cur_i, cur_o; in audioop_ratecv_impl() local 1373 prev_i = (int *) PyMem_Malloc(nchannels * sizeof(int)); in audioop_ratecv_impl() 1375 if (prev_i == NULL || cur_i == NULL) { in audioop_ratecv_impl() 1385 prev_i[chan] = cur_i[chan] = 0; in audioop_ratecv_impl() 1410 &prev_i[chan], &cur_i[chan])) in audioop_ratecv_impl() 1453 prev_i[chan], in audioop_ratecv_impl() 1472 prev_i[chan] = cur_i[chan]; in audioop_ratecv_impl() 1478 (double)weightB * (double)prev_i[chan]) / in audioop_ratecv_impl() 1486 cur_o = (int)(((double)prev_i[chan] * (double)d + in audioop_ratecv_impl() 1496 PyMem_Free(prev_i); in audioop_ratecv_impl()
|
/external/rust/crates/rand/src/distributions/ |
D | weighted_index.rs | 157 let mut prev_i = None; in update_weights() localVariable 159 if let Some(old_i) = prev_i { in update_weights() 182 prev_i = Some(i); in update_weights()
|