/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 51 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/ |
D | MathTests.cpp | 34 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/ |
D | Math.h | 29 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()
|
D | Math.cpp | 40 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/ |
D | gfx11addrlib.cpp | 292 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/ |
D | gfx10addrlib.cpp | 374 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/ |
D | gfx9addrlib.cpp | 241 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/ |
D | SystemZLongBranch.cpp | 182 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/ |
D | Log2.asm.frag | 111 %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/ |
D | BuddyAllocator.cpp | 25 mFreeLists.resize(Log2(mMaxBlockSize) + 1); in BuddyAllocator() 56 return Log2(mMaxBlockSize) - Log2(blockSize); in ComputeLevelFromBlockSize()
|
D | PerStage.h | 76 return mData[Log2(bit)]; 81 return mData[Log2(bit)];
|
D | EnumMaskIterator.h | 33 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/ |
D | ARMBasicBlockInfo.h | 34 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/ |
D | PerStage.h | 70 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/ |
D | Alignment.h | 46 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/ |
D | EmulatedIntrinsics.hpp | 32 RValue<Float> Log2(RValue<Float> x); 50 RValue<Float4> Log2(RValue<Float4> x);
|
D | OptimalIntrinsics.cpp | 221 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()
|
D | OptimalIntrinsics.hpp | 34 Float4 Log2(RValue<Float4> x);
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/math/ |
D | font_math.h | 26 static int32_t Log2(int32_t a) { in Log2() function
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/math/ |
D | font_math.h | 26 static int32_t Log2(int32_t a) { in Log2() function
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | ResourceMemoryAllocatorVk.cpp | 53 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/ |
D | OpExtInst_in_dst_only_dst.spvasm | 28 %13 = OpExtInst %6 %1 Log2 %12
|
D | OpExtInst_in_src_only_src.spvasm | 31 %13 = OpExtInst %6 %1 Log2 %12
|
/third_party/flutter/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 27 uint32_t Log2(uint32_t value);
|
/third_party/mesa3d/src/amd/addrlib/src/r800/ |
D | egbaddrlib.cpp | 1465 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 …]
|