Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DActivation.cpp311 void DownScaleInt32ToInt16Multiplier(int32_t multiplier_int32, int16_t* multiplier_int16) { in DownScaleInt32ToInt16Multiplier() argument
312 TFLITE_DCHECK_GE(multiplier_int32, 0); in DownScaleInt32ToInt16Multiplier()
314 if (multiplier_int32 >= std::numeric_limits<int32_t>::max() - kRoundingOffset) { in DownScaleInt32ToInt16Multiplier()
318 const int32_t result = (multiplier_int32 + kRoundingOffset) >> 16; in DownScaleInt32ToInt16Multiplier()
319 TFLITE_DCHECK_LE(result << 16, multiplier_int32 + kRoundingOffset); in DownScaleInt32ToInt16Multiplier()
320 TFLITE_DCHECK_GT(result << 16, multiplier_int32 - kRoundingOffset); in DownScaleInt32ToInt16Multiplier()