Searched refs:kRoundingOffset (Results 1 – 1 of 1) sorted by relevance
313 static constexpr int32_t kRoundingOffset = 1 << 15; in DownScaleInt32ToInt16Multiplier() local314 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()