Home
last modified time | relevance | path

Searched refs:Log2 (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp51 TEST(Math, Log2) { in TEST() argument
53 ASSERT_EQ(Log2(1u), 0u); in TEST()
54 ASSERT_EQ(Log2(0xFFFFFFFFu), 31u); in TEST()
55 ASSERT_EQ(Log2(static_cast<uint64_t>(0xFFFFFFFFFFFFFFFF)), 63u); in TEST()
62 ASSERT_EQ(Log2(0x80000000u), 31u); in TEST()
63 ASSERT_EQ(Log2(0x7FFFFFFFu), 30u); in TEST()
64 ASSERT_EQ(Log2(static_cast<uint64_t>(0x8000000000000000)), 63u); in TEST()
65 ASSERT_EQ(Log2(static_cast<uint64_t>(0x7FFFFFFFFFFFFFFF)), 62u); in TEST()
72 ASSERT_EQ(Log2(16u), 4u); in TEST()
73 ASSERT_EQ(Log2(15u), 3u); in TEST()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp34 TEST(Math, Log2) { in TEST() argument
36 ASSERT_EQ(Log2(1), 0u); in TEST()
37 ASSERT_EQ(Log2(0xFFFFFFFF), 31u); in TEST()
40 ASSERT_EQ(Log2(0x80000000), 31u); in TEST()
41 ASSERT_EQ(Log2(0x7FFFFFFF), 30u); in TEST()
43 ASSERT_EQ(Log2(16), 4u); in TEST()
44 ASSERT_EQ(Log2(15), 3u); in TEST()
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h29 uint32_t Log2(uint32_t value);
30 uint32_t Log2(uint64_t value);
43 return v <= 1 ? 0 : Log2(v - 1) + 1; in Log2Ceil()
47 return v <= 1 ? 0 : Log2(v - 1) + 1; in Log2Ceil()
DMath.cpp40 uint32_t Log2(uint32_t value) { in Log2() function
52 uint32_t Log2(uint64_t value) { in Log2() function
79 return 1ull << (Log2(n - 1) + 1); in NextPowerOfTwo()
/third_party/mesa3d/src/amd/addrlib/src/gfx11/
Dgfx11addrlib.cpp292 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
303 const UINT_32 numFragLog2 = Log2(Max(pIn->numFrags, 1u)); in HwlComputeDccInfo()
388 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
462 const UINT_32 numSampleLog2 = Log2(pIn->numSamples); in HwlComputeHtileAddrFromCoord()
466 … const UINT_32 blkSizeLog2 = Log2(output.metaBlkWidth) + Log2(output.metaBlkHeight) - 4; in HwlComputeHtileAddrFromCoord()
561 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccAddrFromCoord()
588 const UINT_32 blkSizeLog2 = Log2(pIn->metaBlkWidth) + Log2(pIn->metaBlkHeight) + elemLog2 - 8; in HwlComputeDccAddrFromCoord()
1130 pEquation->addr[i].index = Log2(pSwizzle[i].x) + elemLog2; in ConvertSwizzlePatternToEquation()
1138 pEquation->addr[i].index = Log2(pSwizzle[i].y); in ConvertSwizzlePatternToEquation()
1147 pEquation->addr[i].index = Log2(pSwizzle[i].z); in ConvertSwizzlePatternToEquation()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.cpp374 const UINT_32 fmaskElemLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskInfo()
418 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
434 const UINT_32 numFragLog2 = Log2(Max(pIn->numFrags, 1u)); in HwlComputeDccInfo()
519 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
606 const UINT_32 fmaskElemLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskAddrFromCoord()
613 const UINT_32 blkSizeLog2 = Log2(output.metaBlkWidth) + Log2(output.metaBlkHeight) - 7; in HwlComputeCmaskAddrFromCoord()
676 const UINT_32 numSampleLog2 = Log2(pIn->numSamples); in HwlComputeHtileAddrFromCoord()
681 … const UINT_32 blkSizeLog2 = Log2(output.metaBlkWidth) + Log2(output.metaBlkHeight) - 4; in HwlComputeHtileAddrFromCoord()
775 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccAddrFromCoord()
819 const UINT_32 blkSizeLog2 = Log2(pIn->metaBlkWidth) + Log2(pIn->metaBlkHeight) + elemLog2 - 8; in HwlComputeDccAddrFromCoord()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.cpp241 const INT_32 maxNumOfRbMaskBits = 1 + Log2(numPipeTotal) + Log2(numRbTotal); in HwlComputeHtileInfo()
354 UINT_32 fmaskElementBytesLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskInfo()
355 UINT_32 metaBlkWidthLog2 = Log2(pOut->metaBlkWidth); in HwlComputeCmaskInfo()
356 UINT_32 metaBlkHeightLog2 = Log2(pOut->metaBlkHeight); in HwlComputeCmaskInfo()
713 UINT_32 elementBytesLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
714 UINT_32 numSamplesLog2 = Log2(pIn->numFrags); in HwlComputeDccInfo()
715 UINT_32 metaBlkWidthLog2 = Log2(pOut->metaBlkWidth); in HwlComputeDccInfo()
716 UINT_32 metaBlkHeightLog2 = Log2(pOut->metaBlkHeight); in HwlComputeDccInfo()
717 UINT_32 metaBlkDepthLog2 = Log2(pOut->metaBlkDepth); in HwlComputeDccInfo()
718 UINT_32 compBlkWidthLog2 = Log2(pOut->compressBlkWidth); in HwlComputeDccInfo()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZLongBranch.cpp182 if (Log2(Block.Alignment) > Position.KnownBits) { in skipNonTerminators()
187 Position.KnownBits = Log2(Block.Alignment); in skipNonTerminators()
278 BlockPosition Position(Log2(MF->getAlignment())); in initMBBInfo()
342 BlockPosition Position(Log2(MF->getAlignment())); in setWorstCaseAddresses()
443 BlockPosition Position(Log2(MF->getAlignment())); in relaxBranches()
/third_party/skia/tests/sksl/intrinsics/
DLog2.asm.frag111 %27 = OpExtInst %float %1 Log2 %33
122 %41 = OpExtInst %v2float %1 Log2 %44
137 %54 = OpExtInst %v3float %1 Log2 %57
151 %68 = OpExtInst %v4float %1 Log2 %70
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBuddyAllocator.cpp25 mFreeLists.resize(Log2(mMaxBlockSize) + 1); in BuddyAllocator()
56 return Log2(mMaxBlockSize) - Log2(blockSize); in ComputeLevelFromBlockSize()
DPerStage.h76 return mData[Log2(bit)];
81 return mData[Log2(bit)];
DEnumMaskIterator.h33 ASSERT(U(mask) == 0 || Log2(uint64_t(U(mask))) < N); in EnumMaskIterator()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.h34 if (KnownBits < Log2(Alignment)) in UnknownPadding()
105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DPerStage.h70 return mData[Log2(bit)];
75 return mData[Log2(bit)];
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAlignment.h46 friend unsigned Log2(Align);
204 inline unsigned Log2(Align A) { return A.ShiftValue; } in Log2() function
208 inline unsigned Log2(MaybeAlign A) { in Log2() function
210 return Log2(A.getValue()); in Log2()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DEmulatedIntrinsics.hpp32 RValue<Float> Log2(RValue<Float> x);
50 RValue<Float4> Log2(RValue<Float4> x);
DOptimalIntrinsics.cpp221 Float4 Log2(RValue<Float4> x) in Log2() function
255 return Float4(6.93147181e-1f) * optimal::Log2(x); // ln(2) in Log()
260 Float4 log = optimal::Log2(x); in Pow()
DOptimalIntrinsics.hpp34 Float4 Log2(RValue<Float4> x);
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/math/
Dfont_math.h26 static int32_t Log2(int32_t a) { in Log2() function
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/math/
Dfont_math.h26 static int32_t Log2(int32_t a) { in Log2() function
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DResourceMemoryAllocatorVk.cpp53 uint64_t(1) << Log2(mMemoryHeapSize), in SingleTypeAllocator()
55 std::min(uint64_t(1) << Log2(mMemoryHeapSize), kBuddyHeapsSize), in SingleTypeAllocator()
/third_party/spirv-tools/test/diff/diff_files/
DOpExtInst_in_dst_only_dst.spvasm28 %13 = OpExtInst %6 %1 Log2 %12
DOpExtInst_in_src_only_src.spvasm31 %13 = OpExtInst %6 %1 Log2 %12
/third_party/flutter/skia/third_party/externals/dawn/src/common/
DMath.h27 uint32_t Log2(uint32_t value);
/third_party/mesa3d/src/amd/addrlib/src/r800/
Degbaddrlib.cpp1465 UINT_32 numPipeBits = Log2(numPipes); in ComputeMacroTileEquation()
1467 for (UINT_32 i = 0; i < Log2(pTileInfo->bankWidth); i++) in ComputeMacroTileEquation()
1475 for (UINT_32 i = 0; i < Log2(pTileInfo->bankHeight); i++) in ComputeMacroTileEquation()
1496 thresholdX = Log2(macroTilePitch); in ComputeMacroTileEquation()
1497 thresholdY = Log2(macroTileHeight); in ComputeMacroTileEquation()
1505 UINT_32 pipeBitStart = Log2(m_pipeInterleaveBytes); in ComputeMacroTileEquation()
1538 UINT_32 bankBitStart = pipeBitStart + numPipeBits + Log2(m_bankInterleave); in ComputeMacroTileEquation()
1638 UINT_32 numPipeInterleaveBits = Log2(m_pipeInterleaveBytes); in ComputeSurfaceAddrFromCoordMacroTiled()
1639 UINT_32 numPipeBits = Log2(numPipes); in ComputeSurfaceAddrFromCoordMacroTiled()
1640 UINT_32 numBankInterleaveBits = Log2(m_bankInterleave); in ComputeSurfaceAddrFromCoordMacroTiled()
[all …]

123456