/third_party/skia/third_party/externals/tint/src/utils/ |
D | math_test.cc | 49 TEST(MathTests, IsPowerOfTwo) { in TEST() argument 50 EXPECT_EQ(IsPowerOfTwo(1), true); in TEST() 51 EXPECT_EQ(IsPowerOfTwo(2), true); in TEST() 52 EXPECT_EQ(IsPowerOfTwo(3), false); in TEST() 53 EXPECT_EQ(IsPowerOfTwo(4), true); in TEST() 54 EXPECT_EQ(IsPowerOfTwo(5), false); in TEST() 55 EXPECT_EQ(IsPowerOfTwo(6), false); in TEST() 56 EXPECT_EQ(IsPowerOfTwo(7), false); in TEST() 57 EXPECT_EQ(IsPowerOfTwo(8), true); in TEST() 58 EXPECT_EQ(IsPowerOfTwo(9), false); in TEST()
|
D | math.h | 38 inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 48 TEST(Math, IsPowerOfTwo) { in TEST() argument 49 ASSERT_TRUE(IsPowerOfTwo(1)); in TEST() 50 ASSERT_TRUE(IsPowerOfTwo(2)); in TEST() 51 ASSERT_FALSE(IsPowerOfTwo(3)); in TEST() 53 ASSERT_TRUE(IsPowerOfTwo(0x8000000)); in TEST() 54 ASSERT_FALSE(IsPowerOfTwo(0x8000400)); in TEST()
|
/third_party/flutter/skia/third_party/externals/dawn/src/common/ |
D | Math.cpp | 50 bool IsPowerOfTwo(size_t n) { in IsPowerOfTwo() function 56 ASSERT(IsPowerOfTwo(alignment)); in IsPtrAligned() 62 ASSERT(IsPowerOfTwo(alignment)); in AlignVoidPtr() 70 ASSERT(IsPowerOfTwo(alignment)); in IsAligned() 78 ASSERT(IsPowerOfTwo(alignment)); in Align()
|
D | Math.h | 28 bool IsPowerOfTwo(size_t n);
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 31 bool IsPowerOfTwo(uint64_t n); 58 ASSERT(IsPowerOfTwo(alignment)); in Align() 66 ASSERT(IsPowerOfTwo(alignment)); in AlignPtr() 74 ASSERT(IsPowerOfTwo(alignment)); in AlignPtr()
|
D | Math.cpp | 82 bool IsPowerOfTwo(uint64_t n) { in IsPowerOfTwo() function 88 ASSERT(IsPowerOfTwo(alignment)); in IsPtrAligned() 95 ASSERT(IsPowerOfTwo(alignment)); in IsAligned()
|
D | SlabAllocator.cpp | 74 ASSERT(IsPowerOfTwo(mAllocationAlignment)); in SlabAllocatorImpl()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 115 TEST(Math, IsPowerOfTwo) { in TEST() argument 116 ASSERT_TRUE(IsPowerOfTwo(1)); in TEST() 117 ASSERT_TRUE(IsPowerOfTwo(2)); in TEST() 118 ASSERT_FALSE(IsPowerOfTwo(3)); in TEST() 120 ASSERT_TRUE(IsPowerOfTwo(0x8000000)); in TEST() 121 ASSERT_FALSE(IsPowerOfTwo(0x8000400)); in TEST()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | PerStage.h | 69 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages)); 74 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
|
D | DynamicUploader.cpp | 45 ASSERT(IsPowerOfTwo(alignment)); in Allocate()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | PerStage.h | 75 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages)); 80 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
|
D | BuddyAllocator.cpp | 23 ASSERT(IsPowerOfTwo(maxSize)); in BuddyAllocator() 61 ASSERT(IsPowerOfTwo(alignment)); in GetNextFreeAlignedBlock()
|
D | BuddyMemoryAllocator.cpp | 29 ASSERT(IsPowerOfTwo(mMemoryBlockSize)); in BuddyMemoryAllocator()
|
D | Queue.cpp | 94 ASSERT(IsPowerOfTwo(optimalOffsetAlignment)); in UploadTextureDataAligningBytesPerRowAndOffset() 95 ASSERT(IsPowerOfTwo(blockInfo.byteSize)); in UploadTextureDataAligningBytesPerRowAndOffset()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | ResourceMemoryAllocatorVk.cpp | 57 ASSERT(IsPowerOfTwo(kBuddyHeapsSize)); in SingleTypeAllocator()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver.cc | 2256 if (a->align <= 0 || !utils::IsPowerOfTwo(a->align)) { in Structure()
|
/third_party/libabigail/tests/data/test-annotate/ |
D | test15-pr18892.so.abi | 4534 <!-- bool __sanitizer::IsPowerOfTwo(__sanitizer::uptr) --> 4535 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 5296 <!-- bool __sanitizer::IsPowerOfTwo(__sanitizer::uptr) --> 5297 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 5610 <!-- bool __sanitizer::IsPowerOfTwo(__sanitizer::uptr) --> 5611 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 5793 <!-- bool __sanitizer::IsPowerOfTwo(__sanitizer::uptr) --> 5794 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 6585 <!-- bool __sanitizer::IsPowerOfTwo(__sanitizer::uptr) --> 6586 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… [all …]
|
/third_party/libabigail/tests/data/test-read-dwarf/ |
D | test15-pr18892.so.abi | 2486 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 2968 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 3164 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 3282 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 3790 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 4537 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 4845 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 5036 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 5062 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… 21680 …<function-decl name='IsPowerOfTwo' filepath='../../.././libsanitizer/sanitizer_common/sanitizer_co… [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 3806 auto IsPowerOfTwo = [](ConstantSDNode *C) { in visitSDIVLike() local 3820 if (!N->getFlags().hasExact() && ISD::matchUnaryPredicate(N1, IsPowerOfTwo)) { in visitSDIVLike()
|
/third_party/sqlite/src/ |
D | sqlite3.c | 14688 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro 155306 assert( IsPowerOfTwo(chngToIN) ); 157539 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
|
/third_party/chromium/patch/ |
D | 0003-ohos-1115.patch | 113299 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); 113412 - assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); 151722 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); 151835 - assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); 190027 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); 190140 - assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
D | stylo.hpp | 36340 IsPowerOfTwo(T x) in IsPowerOfTwo() function
|