Home
last modified time | relevance | path

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

/third_party/glslang/gtests/
DCommon.cpp22 TEST(IsPow2, Int_Negative) { in TEST() argument
23 EXPECT_EQ(false, glslang::IsPow2(-5)); in TEST()
24 EXPECT_EQ(false, glslang::IsPow2(-1)); in TEST()
25 EXPECT_EQ(false, glslang::IsPow2(INT_MIN)); in TEST()
26 EXPECT_EQ(false, glslang::IsPow2(int64_t(-10))); in TEST()
29 TEST(IsPow2, Zero) { in TEST() argument
30 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST()
31 EXPECT_EQ(false, glslang::IsPow2(0u)); in TEST()
32 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST()
33 EXPECT_EQ(false, glslang::IsPow2(uint64_t(0))); in TEST()
[all …]
/third_party/glslang/glslang/Include/
DCommon.h261 template <class T> bool IsPow2(T powerOf2)
273 assert(IsPow2(powerOf2));
279 assert(IsPow2(powerOf2));
287 assert(IsPow2(n));
/third_party/mesa3d/src/amd/addrlib/src/core/
Daddrcommon.h330 static inline UINT_32 IsPow2( in IsPow2() function
345 static inline UINT_64 IsPow2( in IsPow2() function
367 ADDR_ASSERT(IsPow2(align)); in PowTwoAlign()
386 ADDR_ASSERT(IsPow2(align)); in PowTwoAlign()
546 ADDR_ASSERT(IsPow2(x)); in Log2()
Daddrlib1.cpp3305 if (IsPow2(pitchAlign)) in PadDimensions()
3318 if (IsPow2(heightAlign)) in PadDimensions()
/third_party/mesa3d/src/amd/addrlib/src/gfx11/
Dgfx11addrlib.cpp1122 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 …]
/third_party/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.cpp1483 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 …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dlayout.h279 constexpr bool IsPow2(size_t n) { return !(n & (n - 1)); }
324 adl_barrier::IsPow2(AlignOf<T>::value)>;
/third_party/mesa3d/src/amd/addrlib/src/r800/
Dciaddrlib.cpp227 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()
Dsiaddrlib.cpp1757 ADDR_ASSERT(IsPow2(expPitch)); in HwlPreHandleBaseLvl3xPitch()
2750 ((pIn->basePitch != 0) && IsPow2(pIn->basePitch))); in HwlComputeMipLevel()
Degbaddrlib.cpp295 if (IsPow2(pOut->pitchAlign)) in ComputeSurfaceInfoLinear()
312 if (IsPow2(pOut->heightAlign)) in ComputeSurfaceInfoLinear()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DAsmParser.cpp552 bool parseDirectiveAlign(bool IsPow2, unsigned ValueSize);
1973 bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes(); in parseStatement() local
1974 return parseDirectiveAlign(IsPow2, /*ExprSize=*/1); in parseStatement()
1977 bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes(); in parseStatement() local
1978 return parseDirectiveAlign(IsPow2, /*ExprSize=*/4); in parseStatement()
3255 bool AsmParser::parseDirectiveAlign(bool IsPow2, unsigned ValueSize) { in parseDirectiveAlign() argument
3286 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3297 if (IsPow2) { in parseDirectiveAlign()
/third_party/skia/third_party/externals/d3d12allocator/src/
DD3D12MemAlloc.cpp253 inline bool IsPow2(T x) in IsPow2() function
263 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()
/third_party/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.cpp3749 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()
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.cpp2033 …if (!IsPow2(semantics & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease)))… in memorySemanticsCheck()
2039 …if (!IsPow2(semantics & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease)))… in memorySemanticsCheck()
2045 …if (!IsPow2(semantics2 & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease))… in memorySemanticsCheck()
2696 else if (!IsPow2(size)) in builtInOpCheck()
5959 if (! IsPow2(value)) in setLayoutQualifier()
6102 if (! IsPow2(value)) in setLayoutQualifier()
/third_party/glslang/glslang/HLSL/
DhlslParseHelper.cpp7288 if (! IsPow2(value)) in setLayoutQualifier()