Home
last modified time | relevance | path

Searched refs:Denominator (Results 1 – 25 of 39) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DBranchProbability.cpp39 BranchProbability::BranchProbability(uint32_t Numerator, uint32_t Denominator) { in BranchProbability() argument
40 assert(Denominator > 0 && "Denominator cannot be 0!"); in BranchProbability()
41 assert(Numerator <= Denominator && "Probability cannot be bigger than 1!"); in BranchProbability()
42 if (Denominator == D) in BranchProbability()
46 (Numerator * static_cast<uint64_t>(D) + Denominator / 2) / Denominator; in BranchProbability()
53 uint64_t Denominator) { in getBranchProbability() argument
54 assert(Numerator <= Denominator && "Probability cannot be bigger than 1!"); in getBranchProbability()
57 while (Denominator > UINT32_MAX) { in getBranchProbability()
58 Denominator >>= 1; in getBranchProbability()
61 return BranchProbability(Numerator >> Scale, Denominator); in getBranchProbability()
/third_party/boost/boost/container/detail/
Dnext_capacity.hpp32 template<unsigned Minimum, unsigned Numerator, unsigned Denominator>
35 BOOST_STATIC_ASSERT(Numerator > Denominator);
37 BOOST_STATIC_ASSERT(Denominator < 100);
38 BOOST_STATIC_ASSERT(Denominator == 1 || (0 != Numerator % Denominator));
48 new_cap = cur_cap * Numerator / Denominator; in operator ()()
50 else if(Denominator == 1 || (SizeType(new_cap = cur_cap) / Denominator) > overflow_limit){ in operator ()()
/third_party/boost/boost/units/
Dstatic_rational.hpp105 BOOST_STATIC_CONSTANT(integer_type, Denominator =
118 static BOOST_CONSTEXPR integer_type denominator() { return Denominator; } in denominator()
143 Denominator = D/den; member in boost::units::static_rational
149 typedef static_rational<Numerator,Denominator> type;
152 static BOOST_CONSTEXPR integer_type denominator() { return Denominator; } in denominator()
256 ::boost::mpl::identity<T0>::type::Denominator
279 T0::Numerator*T1::Denominator+T1::Numerator*T0::Denominator,
280 T0::Denominator*T1::Denominator
291 T0::Numerator*T1::Denominator-T1::Numerator*T0::Denominator,
292 T0::Denominator*T1::Denominator
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/
DSupport.cpp24 if (Denominator == RHS.Denominator) in operator +=()
29 unsigned GCD = GreatestCommonDivisor64(Denominator, RHS.Denominator); in operator +=()
30 unsigned LCM = (Denominator * RHS.Denominator) / GCD; in operator +=()
31 unsigned LHSNumerator = Numerator * (LCM / Denominator); in operator +=()
32 unsigned RHSNumerator = RHS.Numerator * (LCM / RHS.Denominator); in operator +=()
34 Denominator = LCM; in operator +=()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/
DSupport.h51 unsigned Numerator, Denominator; variable
54 ResourceCycles() : Numerator(0), Denominator(1) {} in ResourceCycles()
56 : Numerator(Cycles), Denominator(ResourceUnits) {} in Numerator()
59 assert(Denominator && "Invalid denominator (must be non-zero).");
60 return (Denominator == 1) ? Numerator : (double)Numerator / Denominator;
64 unsigned getDenominator() const { return Denominator; } in getDenominator()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dgradient_paint.inl22 T Denominator = Radius2 - (Fx2 + Fy2); local
23 return Numerator / Denominator;
/third_party/mingw-w64/mingw-w64-headers/direct-x/include/
Ddxgicommon.h64 UINT Denominator; member
Ddxgicommon.idl60 UINT Denominator;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMathExtras.h731 inline uint64_t divideCeil(uint64_t Numerator, uint64_t Denominator) {
732 return alignTo(Numerator, Denominator) / Denominator;
736 inline uint64_t divideNearest(uint64_t Numerator, uint64_t Denominator) {
737 return (Numerator + (Denominator / 2)) / Denominator;
DBranchProbability.h44 BranchProbability(uint32_t Numerator, uint32_t Denominator);
57 uint64_t Denominator);
/third_party/boost/boost/units/detail/
Dstatic_rational_power.hpp56 return(pow(y, static_cast<double>(R::Numerator) / static_cast<double>(R::Denominator))); in call()
/third_party/flutter/skia/third_party/externals/imgui/examples/example_win32_directx11/
Dmain.cpp41 sd.BufferDesc.RefreshRate.Denominator = 1; in CreateDeviceD3D()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_directx11/
Dmain.cpp191 sd.BufferDesc.RefreshRate.Denominator = 1; in CreateDeviceD3D()
/third_party/flutter/skia/third_party/externals/imgui/examples/example_win32_directx10/
Dmain.cpp41 sd.BufferDesc.RefreshRate.Denominator = 1; in CreateDeviceD3D()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/win32/
DNativeWindow11Win32.cpp187 swapChainDesc.BufferDesc.RefreshRate.Denominator = 1; in createSwapChain()
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx11/
Dmain.cpp177 sd.BufferDesc.RefreshRate.Denominator = 1; in CreateDeviceD3D()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/win32/
DNativeWindow11Win32.cpp187 swapChainDesc.BufferDesc.RefreshRate.Denominator = 1; in createSwapChain()
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx10/
Dmain.cpp176 sd.BufferDesc.RefreshRate.Denominator = 1; in CreateDeviceD3D()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolution.cpp893 const SCEV *Denominator, const SCEV **Quotient, in divide()
895 assert(Numerator && Denominator && "Uninitialized SCEV"); in divide()
897 SCEVDivision D(SE, Numerator, Denominator); in divide()
901 if (Numerator == Denominator) { in divide()
914 if (Denominator->isOne()) { in divide()
921 if (const SCEVMulExpr *T = dyn_cast<SCEVMulExpr>(Denominator)) { in divide()
959 if (const SCEVConstant *D = dyn_cast<SCEVConstant>(Denominator)) { in visitConstant()
983 divide(SE, Numerator->getStart(), Denominator, &StartQ, &StartR); in visitAddRecExpr()
984 divide(SE, Numerator->getStepRecurrence(SE), Denominator, &StepQ, &StepR); in visitAddRecExpr()
986 Type *Ty = Denominator->getType(); in visitAddRecExpr()
[all …]
DValueTracking.cpp2501 const APInt *Denominator; in ComputeNumSignBitsImpl() local
2503 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBitsImpl()
2506 if (!Denominator->isStrictlyPositive()) in ComputeNumSignBitsImpl()
2513 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBitsImpl()
2519 const APInt *Denominator; in ComputeNumSignBitsImpl() local
2523 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBitsImpl()
2526 if (!Denominator->isStrictlyPositive()) in ComputeNumSignBitsImpl()
2546 unsigned ResBits = TyBits - Denominator->ceilLogBase2(); in ComputeNumSignBitsImpl()
4083 const APInt *Numerator, *Denominator; in isSafeToSpeculativelyExecute() local
4084 if (!match(Inst->getOperand(1), m_APInt(Denominator))) in isSafeToSpeculativelyExecute()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstrInfo.td240 // src1 = Denominator, src2 = Numerator).
246 // Denominator, src2 = Numerator).
/third_party/python/Doc/library/
Dfractions.rst98 Denominator of the Fraction in lowest term.
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/
DDXGISwapChainWindowSurfaceWGL.cpp472 swapChainDesc.BufferDesc.RefreshRate.Denominator = 1; in createSwapChain()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/
DDXGISwapChainWindowSurfaceWGL.cpp472 swapChainDesc.BufferDesc.RefreshRate.Denominator = 1; in createSwapChain()
/third_party/mingw-w64/mingw-w64-headers/include/
Ddxvahd.h224 UINT Denominator; member

12