Home
last modified time | relevance | path

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

/external/llvm-project/mlir/unittests/Support/
DMathExtrasTest.cpp23 EXPECT_THAT(floorDiv(14, 3), Eq(4)); in TEST()
24 EXPECT_THAT(floorDiv(14, -3), Eq(-5)); in TEST()
25 EXPECT_THAT(floorDiv(-14, -3), Eq(4)); in TEST()
26 EXPECT_THAT(floorDiv(-14, 3), Eq(-5)); in TEST()
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java86 long secs = floorDiv(epochMilli, MILLIS_PER_SECOND); in fromMillis()
186 long secs = TimeUtils.checkedAdd(epochSecond, floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
192 private static long floorDiv(long x, long y) { in floorDiv() method in Timestamp
198 return x - floorDiv(x, y) * y; in floorMod()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/
DMiscUtils.java67 return x - y * floorDiv(x, y); in floorMod()
70 private static int floorDiv(int x, int y) { in floorDiv() method in MiscUtils
/external/llvm-project/mlir/lib/IR/
DAffineExpr.cpp50 return lhs.floorDiv(rhs); in getAffineBinaryOpExpr()
676 floorDiv(lhsConst.getValue(), rhsConst.getValue()), lhs.getContext()); in simplifyFloorDiv()
702 return lBin.getLHS().floorDiv(rhsConst.getValue()) + in simplifyFloorDiv()
703 lBin.getRHS().floorDiv(rhsConst.getValue()); in simplifyFloorDiv()
709 AffineExpr AffineExpr::floorDiv(uint64_t v) const { in floorDiv() function in AffineExpr
710 return floorDiv(getAffineConstantExpr(v, getContext())); in floorDiv()
712 AffineExpr AffineExpr::floorDiv(AffineExpr other) const { in floorDiv() function in AffineExpr
941 auto floorDivExpr = dividendExpr.floorDiv(divisorExpr); in visitModExpr()
1027 auto divExpr = isCeil ? a.ceilDiv(b) : a.floorDiv(b); in visitDivExpr()
DAffineMap.cpp54 expr, [](int64_t lhs, int64_t rhs) { return floorDiv(lhs, rhs); }); in constantFoldImpl()
/external/llvm-project/mlir/include/mlir/Support/
DMathExtras.h32 inline int64_t floorDiv(int64_t lhs, int64_t rhs) { in floorDiv() function
/external/llvm-project/mlir/include/mlir/Analysis/Presburger/
DFraction.h55 inline int64_t floor(Fraction f) { return floorDiv(f.num, f.den); } in floor()
/external/llvm-project/mlir/include/mlir/IR/
DAffineExpr.h143 AffineExpr floorDiv(uint64_t v) const;
144 AffineExpr floorDiv(AffineExpr other) const;
/external/llvm-project/mlir/lib/Dialect/Affine/EDSC/
DBuilders.cpp182 Value mlir::edsc::op::floorDiv(Value lhs, Value rhs) { in floorDiv() function in mlir::edsc::op
184 lhs, rhs, [](AffineExpr d0, AffineExpr d1) { return d0.floorDiv(d1); }); in floorDiv()
/external/llvm-project/mlir/lib/Analysis/
DAffineStructures.cpp1104 atIneq(i, numCols - 1) = mlir::floorDiv(atIneq(i, numCols - 1), gcdI); in GCDTightenInequalities()
1244 (*memo)[dividendPos].floorDiv(divisor) * quotientSign; in detectAsMod()
1375 exprs[pos] = dividendExpr.floorDiv(divisor); in detectAsFloorDiv()
1521 expr = (expr + divisor - 1).floorDiv(divisor); in getLowerAndUpperBound()
1534 expr = expr.floorDiv(std::abs(ineq[pos + offset])); in getLowerAndUpperBound()
1550 expr = expr.floorDiv(std::abs(eq[pos + offset])); in getLowerAndUpperBound()
1661 expr = (-expr).floorDiv(vPos); in getSliceBounds()
1664 expr = expr.floorDiv(-vPos); in getSliceBounds()
2288 : mlir::floorDiv(atIneq(r, getNumCols() - 1), -atIneq(r, 0)); in computeConstantLowerOrUpperBound()
/external/swiftshader/src/System/
DMath.hpp199 inline int floorDiv(int a, int b) in floorDiv() function
/external/swiftshader/src/Common/
DMath.hpp231 inline int floorDiv(int a, int b) in floorDiv() function
/external/llvm-project/mlir/lib/Transforms/
DPipelineDataTransfer.cpp102 AffineMap::get(/*dimCount=*/1, /*symbolCount=*/0, d0.floorDiv(step) % 2); in doubleBuffer()
DLoopFusion.cpp825 (offset + lbs[d][cst->getNumCols() - 1 - rank]).floorDiv(lbDivisors[d]); in createPrivateMemRef()
/external/llvm-project/mlir/docs/
DEDSC.md45 ceilDiv(index_type(31) * floorDiv(i + j * index_type(3), index_type(32)),
/external/llvm-project/mlir/lib/Dialect/SDBM/
DSDBMExpr.cpp50 AffineExprMatcher floorDiv(AffineExprMatcher other) { in floorDiv() function in __anonacd1e89f0111::AffineExprMatcher
450 AffineExprMatcher pattern = (x.floorDiv(C)) * C; in tryConvertAffineExpr()
/external/llvm-project/mlir/include/mlir/Dialect/Affine/EDSC/
DBuilders.h69 Value floorDiv(Value lhs, Value rhs);
/external/llvm-project/mlir/unittests/SDBM/
DSDBMTest.cpp425 auto floor = dim.floorDiv(cst); in TEST()
/external/llvm-project/mlir/lib/Parser/
DAffineParser.cpp121 return lhs.floorDiv(rhs); in getAffineBinaryOpExpr()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DTransforms.cpp399 lb + step * ((ub - 1) - lb).floorDiv(step)); in substituteLoopInExpr()
/external/llvm-project/mlir/lib/Analysis/Presburger/
DSimplex.cpp893 int64_t u = floorDiv(dual[i - level], dualDenom); in reduceBasis()
/external/llvm-project/mlir/test/EDSC/
Dbuilder-api-test.cpp82 ceilDiv(std_constant_index(31) * floorDiv(i + j * std_constant_index(3), in TEST_FUNC()
/external/llvm-project/mlir/tools/mlir-linalg-ods-gen/
Dmlir-linalg-ods-gen.cpp512 return lhs.floorDiv(rhs); in getAffineBinaryOpExpr()
/external/llvm-project/mlir/lib/Transforms/Utils/
DLoopUtils.cpp2403 (offset + lbs[d][cst->getNumCols() - 1 - rank]).floorDiv(lbDivisors[d]); in generateCopy()