Home
last modified time | relevance | path

Searched refs:ScanForward (Results 1 – 19 of 19) sorted by relevance

/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp22 TEST(Math, ScanForward) { in TEST() argument
24 ASSERT_EQ(ScanForward(1), 0u); in TEST()
25 ASSERT_EQ(ScanForward(0x80000000), 31u); in TEST()
28 ASSERT_EQ(ScanForward(256), 8u); in TEST()
29 ASSERT_EQ(ScanForward(256 + 32), 5u); in TEST()
30 ASSERT_EQ(ScanForward(1024 + 256 + 32), 5u); in TEST()
/third_party/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp279 TEST(MathUtilTest, ScanForward) in TEST() argument
281 EXPECT_EQ(0ul, gl::ScanForward(1u)); in TEST()
282 EXPECT_EQ(16ul, gl::ScanForward(0x80010000u)); in TEST()
283 EXPECT_EQ(31ul, gl::ScanForward(0x80000000u)); in TEST()
285 EXPECT_EQ(0ul, gl::ScanForward(static_cast<uint64_t>(1ull))); in TEST()
286 EXPECT_EQ(16ul, gl::ScanForward(static_cast<uint64_t>(0x80010000ull))); in TEST()
287 EXPECT_EQ(31ul, gl::ScanForward(static_cast<uint64_t>(0x80000000ull))); in TEST()
289 EXPECT_EQ(32ul, gl::ScanForward(static_cast<uint64_t>(0x100000000ull))); in TEST()
290 EXPECT_EQ(48ul, gl::ScanForward(static_cast<uint64_t>(0x8001000000000000ull))); in TEST()
291 EXPECT_EQ(63ul, gl::ScanForward(static_cast<uint64_t>(0x8000000000000000ull))); in TEST()
Dmathutil.h1102 inline unsigned long ScanForward(uint32_t bits) in ScanForward() function
1111 inline unsigned long ScanForward(uint64_t bits) in ScanForward() function
1168 inline unsigned long ScanForward(uint32_t bits) in ScanForward() function
1174 inline unsigned long ScanForward(uint64_t bits) in ScanForward() function
1211 inline unsigned long ScanForward(uint8_t bits) in ScanForward() function
1213 return ScanForward(static_cast<uint32_t>(bits)); in ScanForward()
1216 inline unsigned long ScanForward(uint16_t bits) in ScanForward() function
1218 return ScanForward(static_cast<uint32_t>(bits)); in ScanForward()
1242 return static_cast<int>(ScanForward(bits)); in FindLSB()
Dbitset_utils.h387 return static_cast<ParamT>(gl::ScanForward(mBits)); in first()
442 return gl::ScanForward(mBitsCopy.mBits); in getNextBit()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp39 TEST(Math, ScanForward) { in TEST() argument
41 ASSERT_EQ(ScanForward(1), 0u); in TEST()
42 ASSERT_EQ(ScanForward(0x80000000), 31u); in TEST()
45 ASSERT_EQ(ScanForward(256), 8u); in TEST()
46 ASSERT_EQ(ScanForward(256 + 32), 5u); in TEST()
47 ASSERT_EQ(ScanForward(1024 + 256 + 32), 5u); in TEST()
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp269 TEST(MathUtilTest, ScanForward) in TEST() argument
271 EXPECT_EQ(0ul, gl::ScanForward(1u)); in TEST()
272 EXPECT_EQ(16ul, gl::ScanForward(0x80010000u)); in TEST()
273 EXPECT_EQ(31ul, gl::ScanForward(0x80000000u)); in TEST()
276 EXPECT_EQ(0ul, gl::ScanForward(static_cast<uint64_t>(1ull))); in TEST()
277 EXPECT_EQ(16ul, gl::ScanForward(static_cast<uint64_t>(0x80010000ull))); in TEST()
278 EXPECT_EQ(31ul, gl::ScanForward(static_cast<uint64_t>(0x80000000ull))); in TEST()
Dmathutil.h1044 inline unsigned long ScanForward(uint32_t bits) in ScanForward() function
1054 inline unsigned long ScanForward(uint64_t bits) in ScanForward() function
1066 inline unsigned long ScanForward(uint32_t bits) in ScanForward() function
1073 inline unsigned long ScanForward(uint64_t bits) in ScanForward() function
1081 inline unsigned long ScanForward(uint8_t bits) in ScanForward() function
1083 return ScanForward(static_cast<uint32_t>(bits)); in ScanForward()
1086 inline unsigned long ScanForward(uint16_t bits) in ScanForward() function
1088 return ScanForward(static_cast<uint32_t>(bits)); in ScanForward()
1119 return static_cast<int>(ScanForward(bits)); in FindLSB()
Dbitset_utils.h235 return gl::ScanForward(wordBits) + mOffset; in getNextBit()
491 return gl::ScanForward(mBitsCopy.mBits); in getNextBit()
/third_party/flutter/skia/third_party/externals/dawn/src/common/
DMath.h26 uint32_t ScanForward(uint32_t bits);
DMath.cpp26 uint32_t ScanForward(uint32_t bits) { in ScanForward() function
DBitSetIterator.h120 return ScanForward(wordBits) + mOffset; in getNextBit()
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h28 uint32_t ScanForward(uint32_t bits);
DMath.cpp28 uint32_t ScanForward(uint32_t bits) { in ScanForward() function
DBitSetIterator.h124 return ScanForward(wordBits) + mOffset; in getNextBit()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DUniform.cpp34 return static_cast<ShaderType>(ScanForward(mActiveUseBits.bits())); in getFirstShaderTypeWhereActive()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DUniform.cpp34 return static_cast<ShaderType>(ScanForward(mActiveUseBits.bits())); in getFirstShaderTypeWhereActive()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DFramebufferD3D.cpp358 gl::ScanForward(static_cast<uint32_t>(activeProgramOutputs.bits()))); in getColorAttachmentsForRender()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DFramebufferD3D.cpp388 gl::ScanForward(static_cast<uint32_t>(activeProgramOutputs.bits()))); in getColorAttachmentsForRender()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_utils.cpp1237 return gl::ScanForward(static_cast<uint32_t>(sampleCount)); in PackSampleCount()