Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/operations/
DBroadcast.cpp138 const int left_shift = 20; in addQuant8() local
143 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() local
352 twice_max_input_scale / ((1 << left_shift) * shapeOut.scale); in subQuant8()
382 op_params.left_shift = left_shift; in subQuant8()
/packages/modules/NeuralNetworks/common/
DOperationsUtils.cpp208 int32_t* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument
211 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() argument
243 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()
DQuantUtils.h22 int left_shift = shift > 0 ? shift : 0; in MultiplyByQuantizedMultiplier() local
25 SaturatingRoundingDoublingHighMul(x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/packages/modules/NeuralNetworks/common/include/
DOperationsUtils.h174 int32_t* quantized_multiplier, int32_t* left_shift);
177 int* left_shift);