Searched refs:IsPow2 (Results 1 – 14 of 14) sorted by relevance
330 static inline UINT_32 IsPow2( in IsPow2() function345 static inline UINT_64 IsPow2( in IsPow2() function367 ADDR_ASSERT(IsPow2(align)); in PowTwoAlign()386 ADDR_ASSERT(IsPow2(align)); in PowTwoAlign()546 ADDR_ASSERT(IsPow2(x)); in Log2()
3305 if (IsPow2(pitchAlign)) in PadDimensions()3318 if (IsPow2(heightAlign)) in PadDimensions()
1122 ADDR_ASSERT(IsPow2(pSwizzle[i].value)); in ConvertSwizzlePatternToEquation()1126 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].x))); in ConvertSwizzlePatternToEquation()1134 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].y))); in ConvertSwizzlePatternToEquation()1143 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].z))); in ConvertSwizzlePatternToEquation()1171 if (IsPow2(pSwizzle[i].value)) in ConvertSwizzlePatternToEquation()1206 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].z))); in ConvertSwizzlePatternToEquation()1217 ADDR_ASSERT(IsPow2(swizzle[i].value) == FALSE); in ConvertSwizzlePatternToEquation()1223 ADDR_ASSERT(IsPow2(xHi)); in ConvertSwizzlePatternToEquation()1237 ADDR_ASSERT(IsPow2(yHi)); in ConvertSwizzlePatternToEquation()1275 if (IsPow2(swizzle[i].value)) in ConvertSwizzlePatternToEquation()[all …]
267 template <class T> bool IsPow2(T powerOf2)279 assert(IsPow2(powerOf2));285 assert(IsPow2(powerOf2));
1483 ADDR_ASSERT(IsPow2(pSwizzle[i].value)); in ConvertSwizzlePatternToEquation()1487 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].x))); in ConvertSwizzlePatternToEquation()1495 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].y))); in ConvertSwizzlePatternToEquation()1504 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].z))); in ConvertSwizzlePatternToEquation()1532 if (IsPow2(pSwizzle[i].value)) in ConvertSwizzlePatternToEquation()1567 ADDR_ASSERT(IsPow2(static_cast<UINT_32>(pSwizzle[i].z))); in ConvertSwizzlePatternToEquation()1578 ADDR_ASSERT(IsPow2(swizzle[i].value) == FALSE); in ConvertSwizzlePatternToEquation()1584 ADDR_ASSERT(IsPow2(xHi)); in ConvertSwizzlePatternToEquation()1598 ADDR_ASSERT(IsPow2(yHi)); in ConvertSwizzlePatternToEquation()1636 if (IsPow2(swizzle[i].value)) in ConvertSwizzlePatternToEquation()[all …]
279 constexpr bool IsPow2(size_t n) { return !(n & (n - 1)); }324 adl_barrier::IsPow2(AlignOf<T>::value)>;
227 ADDR_ASSERT(IsPow2(fastClearBaseAlign)); in HwlComputeDccInfo()247 ADDR_ASSERT(IsPow2(pOut->dccRamBaseAlign)); in HwlComputeDccInfo()2130 ADDR_ASSERT(IsPow2(dccFastClearByteAlign)); in HwlPadDimensions()2158 if (IsPow2(dccFastClearPitchAlignInPixels)) in HwlPadDimensions()
295 if (IsPow2(pOut->pitchAlign)) in ComputeSurfaceInfoLinear()312 if (IsPow2(pOut->heightAlign)) in ComputeSurfaceInfoLinear()
1757 ADDR_ASSERT(IsPow2(expPitch)); in HwlPreHandleBaseLvl3xPitch()2750 ((pIn->basePitch != 0) && IsPow2(pIn->basePitch))); in HwlComputeMipLevel()
552 bool parseDirectiveAlign(bool IsPow2, unsigned ValueSize);1973 bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes(); in parseStatement() local1974 return parseDirectiveAlign(IsPow2, /*ExprSize=*/1); in parseStatement()1977 bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes(); in parseStatement() local1978 return parseDirectiveAlign(IsPow2, /*ExprSize=*/4); in parseStatement()3255 bool AsmParser::parseDirectiveAlign(bool IsPow2, unsigned ValueSize) { in parseDirectiveAlign() argument3286 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()3297 if (IsPow2) { in parseDirectiveAlign()
253 inline bool IsPow2(T x) in IsPow2() function263 D3D12MA_HEAVY_ASSERT(IsPow2(alignment)); in AlignUp()271 D3D12MA_HEAVY_ASSERT(IsPow2(alignment)); in AlignDown()4220 D3D12MA_ASSERT(IsPow2(resAllocInfo.Alignment)); in CreateResource()4401 D3D12MA_ASSERT(IsPow2(resAllocInfo.Alignment)); in CreateAliasingResource()5648 if(!pDesc || !pOffset || pDesc->Size == 0 || !IsPow2(pDesc->Alignment)) in Allocate()
3749 if (IsPow2(allowedBlockSet.value) == FALSE) in HwlGetPreferredSurfaceSetting()3846 if (IsPow2(allowedBlockSet.value) == FALSE) in HwlGetPreferredSurfaceSetting()3899 ADDR_ASSERT(IsPow2(GetAllowedBlockSet(allowedSwModeSet, pOut->resourceType).value)); in HwlGetPreferredSurfaceSetting()3904 if ((allowedSwSet.value != 0) && (IsPow2(allowedSwSet.value) == FALSE)) in HwlGetPreferredSurfaceSetting()3972 ADDR_ASSERT(IsPow2(GetAllowedSwSet(allowedSwModeSet).value)); in HwlGetPreferredSurfaceSetting()
1813 …if (!IsPow2(semantics & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease)))… in memorySemanticsCheck()1819 …if (!IsPow2(semantics & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease)))… in memorySemanticsCheck()1825 …if (!IsPow2(semantics2 & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease))… in memorySemanticsCheck()2236 else if (!IsPow2(size)) in builtInOpCheck()5280 if (! IsPow2(value)) in setLayoutQualifier()5426 if (! IsPow2(value)) in setLayoutQualifier()
7191 if (! IsPow2(value)) in setLayoutQualifier()