Searched refs:left_shift (Results 1 – 4 of 4) sorted by relevance
138 const int left_shift = 20; in addQuant8() local143 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in addQuant8()170 op_params.left_shift = left_shift; in addQuant8()347 const int left_shift = 20; in subQuant8() local352 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in subQuant8()382 op_params.left_shift = left_shift; in subQuant8()
208 int32_t* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument211 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()212 NN_RET_CHECK(*left_shift <= 0); in QuantizeMultiplierSmallerThanOneExp()241 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument243 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()248 ++*left_shift; in QuantizeMultiplierGreaterThanOne()250 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()
174 int32_t* quantized_multiplier, int32_t* left_shift);177 int* left_shift);