Searched refs:old_weight (Results 1 – 4 of 4) sorted by relevance
96 int old_weight, new_weight; in linear_expand() local119 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() local176 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() local239 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 …]
172 AddressPtr old_weight = param_aggr->GetWeight(); in HandlePushWeight() local174 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()
250 int32_t old_weight; in nghttp2_stream_change_weight() local257 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()