Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/internal/
Dcommon.h70 int32 x, int32 quantized_multiplier, int left_shift) {
72 return SaturatingRoundingDoublingHighMul(x * (1 << left_shift),
/frameworks/ml/nn/common/operations/
DSimpleMath.cpp66 const int left_shift = 20; in addQuant8() local
72 ((1 << left_shift) * shapeOut.scale); in addQuant8()
100 left_shift, \ in addQuant8()
111 left_shift, \ in addQuant8()
/frameworks/ml/nn/common/
DOperationsUtils.cpp95 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument
97 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
102 ++*left_shift; in QuantizeMultiplierGreaterThanOne()
104 NN_OPS_CHECK(*left_shift >= 0); in QuantizeMultiplierGreaterThanOne()
/frameworks/ml/nn/common/include/
DOperationsUtils.h83 int* left_shift);
/frameworks/ml/nn/common/operations/internal/reference/
Dreference_ops.h47 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument
49 return SaturatingRoundingDoublingHighMul(x * (1 << left_shift), in MultiplyByQuantizedMultiplierGreaterThanOne()
714 inline void Add(int left_shift, const uint8* input1_data, in Add() argument
748 const int32 shifted_input1_val = input1_val * (1 << left_shift); in Add()
749 const int32 shifted_input2_val = input2_val * (1 << left_shift); in Add()
811 inline void BroadcastAdd(int left_shift, const uint8* input1_data, in BroadcastAdd() argument
856 const int32 shifted_input1_val = input1_val * (1 << left_shift); in BroadcastAdd()
857 const int32 shifted_input2_val = input2_val * (1 << left_shift); in BroadcastAdd()
/frameworks/ml/nn/common/operations/internal/optimized/
Doptimized_ops.h1349 inline void Add(int left_shift, const uint8* input1_data,
1406 const auto left_shift_dup = vdupq_n_s32(left_shift);
1439 const int32 shifted_input1_val = input1_val * (1 << left_shift);
1440 const int32 shifted_input2_val = input2_val * (1 << left_shift);
1499 inline void BroadcastAdd(int left_shift, const uint8* input1_data,
1544 const int32 shifted_input1_val = input1_val * (1 << left_shift);
1545 const int32 shifted_input2_val = input2_val * (1 << left_shift);