Home
last modified time | relevance | path

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

/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/devel/llvm12/llvm-project-12.0.1.src/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]
/dports/devel/llvm13/llvm-project-13.0.1.src/mlir/lib/Dialect/Tosa/Utils/
H A 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()
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
[all …]