Home
last modified time | relevance | path

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

/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/
DQuantUtils.cpp27 auto shiftedM = std::round(mantissa * (int64_t(1) << 15)); in computeMultiplierAndShiftTosaScale16() local
30 assert(shiftedM <= (int64_t(1) << 15) && in computeMultiplierAndShiftTosaScale16()
33 if (shiftedM == (int64_t(1) << 15)) { in computeMultiplierAndShiftTosaScale16()
34 shiftedM /= 2; in computeMultiplierAndShiftTosaScale16()
42 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale16()
45 multiplier = static_cast<int32_t>(shiftedM); in computeMultiplierAndShiftTosaScale16()
56 auto shiftedM = std::round(mantissa * (int64_t(1) << 31)); in computeMultiplierAndShiftTosaScale32() local
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
[all …]