Home
last modified time | relevance | path

Searched refs:old_weight (Results 1 – 4 of 4) sorted by relevance

/third_party/alsa-lib/src/pcm/
Dpcm_rate_linear.c96 int old_weight, new_weight; in linear_expand() local
119 old_weight = 0x10000 - new_weight; in linear_expand()
120 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand()
159 int old_weight, new_weight; in linear_expand_s16() local
176 old_weight = 0x10000 - new_weight; in linear_expand_s16()
177 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand_s16()
218 int old_weight, new_weight; in linear_shrink() local
239 old_weight = (pos << (32 - LINEAR_DIV_SHIFT)) / (get_increment >> (LINEAR_DIV_SHIFT - 16)); in linear_shrink()
240 new_weight = 0x10000 - old_weight; in linear_shrink()
241 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_shrink()
[all …]
/third_party/mindspore/mindspore/ccsrc/fl/server/
Dexecutor.cc172 AddressPtr old_weight = param_aggr->GetWeight(); in HandlePushWeight() local
174 MS_ERROR_IF_NULL_W_RET_VAL(old_weight, false); in HandlePushWeight()
175 MS_ERROR_IF_NULL_W_RET_VAL(old_weight->addr, false); in HandlePushWeight()
177 int ret = memcpy_s(old_weight->addr, old_weight->size, new_weight.addr, new_weight.size); in HandlePushWeight()
/third_party/nghttp2/lib/
Dnghttp2_stream.c250 int32_t old_weight; in nghttp2_stream_change_weight() local
257 old_weight = stream->weight; in nghttp2_stream_change_weight()
266 dep_stream->sum_dep_weight += weight - old_weight; in nghttp2_stream_change_weight()
279 (uint32_t)((stream->pending_penalty + (uint32_t)old_weight - in nghttp2_stream_change_weight()
280 (wlen_penalty % (uint32_t)old_weight)) % in nghttp2_stream_change_weight()
281 (uint32_t)old_weight); in nghttp2_stream_change_weight()
284 (wlen_penalty + stream->pending_penalty) / (uint32_t)old_weight; in nghttp2_stream_change_weight()
/third_party/node/deps/nghttp2/lib/
Dnghttp2_stream.c250 int32_t old_weight; in nghttp2_stream_change_weight() local
257 old_weight = stream->weight; in nghttp2_stream_change_weight()
266 dep_stream->sum_dep_weight += weight - old_weight; in nghttp2_stream_change_weight()
279 (uint32_t)((stream->pending_penalty + (uint32_t)old_weight - in nghttp2_stream_change_weight()
280 (wlen_penalty % (uint32_t)old_weight)) % in nghttp2_stream_change_weight()
281 (uint32_t)old_weight); in nghttp2_stream_change_weight()
284 (wlen_penalty + stream->pending_penalty) / (uint32_t)old_weight; in nghttp2_stream_change_weight()