Home
last modified time | relevance | path

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

123456

/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/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/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/gfx10/
Dgfx10addrlib.cpp375 const UINT_32 fmaskElemLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskInfo()
419 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
435 const UINT_32 numFragLog2 = Log2(Max(pIn->numFrags, 1u)); in HwlComputeDccInfo()
520 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
607 const UINT_32 fmaskElemLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskAddrFromCoord()
615 const UINT_32 blkSizeLog2 = Log2(output.metaBlkWidth) + Log2(output.metaBlkHeight) - 7; in HwlComputeCmaskAddrFromCoord()
678 const UINT_32 numSampleLog2 = Log2(pIn->numSamples); in HwlComputeHtileAddrFromCoord()
684 … const UINT_32 blkSizeLog2 = Log2(output.metaBlkWidth) + Log2(output.metaBlkHeight) - 4; in HwlComputeHtileAddrFromCoord()
778 const UINT_32 elemLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccAddrFromCoord()
822 const UINT_32 blkSizeLog2 = Log2(pIn->metaBlkWidth) + Log2(pIn->metaBlkHeight) + elemLog2 - 8; in HwlComputeDccAddrFromCoord()
[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/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.cpp242 const INT_32 maxNumOfRbMaskBits = 1 + Log2(numPipeTotal) + Log2(numRbTotal); in HwlComputeHtileInfo()
355 UINT_32 fmaskElementBytesLog2 = Log2(fmaskBpp >> 3); in HwlComputeCmaskInfo()
356 UINT_32 metaBlkWidthLog2 = Log2(pOut->metaBlkWidth); in HwlComputeCmaskInfo()
357 UINT_32 metaBlkHeightLog2 = Log2(pOut->metaBlkHeight); in HwlComputeCmaskInfo()
714 UINT_32 elementBytesLog2 = Log2(pIn->bpp >> 3); in HwlComputeDccInfo()
715 UINT_32 numSamplesLog2 = Log2(pIn->numFrags); in HwlComputeDccInfo()
716 UINT_32 metaBlkWidthLog2 = Log2(pOut->metaBlkWidth); in HwlComputeDccInfo()
717 UINT_32 metaBlkHeightLog2 = Log2(pOut->metaBlkHeight); in HwlComputeDccInfo()
718 UINT_32 metaBlkDepthLog2 = Log2(pOut->metaBlkDepth); in HwlComputeDccInfo()
719 UINT_32 compBlkWidthLog2 = Log2(pOut->compressBlkWidth); in HwlComputeDccInfo()
[all …]
/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/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/lib/Target/ARM/
DARMBasicBlockInfo.h34 if (KnownBits < Log2(Alignment)) in UnknownPadding()
105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dbuddy.cc211 auto log_sz = static_cast<log_t>(Log2(rel_sz)); in SetBuddySegState()
253 auto log_sz = static_cast<log_t>(Log2(blk_sz)); in JoinBuddySeg()
275 uint32_t inx = Log2(blk_sz); in TrimBuddySeg()
296 uint32_t inx = Log2(blk_sz); in UnTrimBuddySeg()
323 int start_inx = static_cast<int>(Log2(blk_size)); in AllocBuddySeg()
/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/flutter/skia/third_party/externals/dawn/src/common/
DMath.h27 uint32_t Log2(uint32_t value);
/third_party/vk-gl-cts/external/vulkancts/data/vulkan/amber/graphicsfuzz/
Dcov-vector-log2-cosh.amber80 %14 = OpExtInst %7 %1 Log2 %13
/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/cov-vector-log2-cosh/
D0-opt.spvasm34 %25 = OpExtInst %v2float %1 Log2 %24
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.2/
DOpenCL.std.h70 Log2 = 38, enumerator

123456