Searched refs:left_shift (Results 1 – 4 of 4) sorted by relevance
135 const int left_shift = 20; in addQuant8() local140 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in addQuant8()167 op_params.left_shift = left_shift; in addQuant8()344 const int left_shift = 20; in subQuant8() local349 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in subQuant8()379 op_params.left_shift = left_shift; in subQuant8()
210 int32_t* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument213 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()214 NN_RET_CHECK(*left_shift <= 0); in QuantizeMultiplierSmallerThanOneExp()243 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument245 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()250 ++*left_shift; in QuantizeMultiplierGreaterThanOne()252 NN_OPS_CHECK(*left_shift >= 0); in QuantizeMultiplierGreaterThanOne()
22 int left_shift = shift > 0 ? shift : 0; in MultiplyByQuantizedMultiplier() local25 SaturatingRoundingDoublingHighMul(x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
190 int32_t* quantized_multiplier, int32_t* left_shift);193 int* left_shift);