Home
last modified time | relevance | path

Searched refs:IsPowerOfTwo (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/tint/src/utils/
Dmath_test.cc49 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()
Dmath.h38 inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp48 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/
DMath.cpp50 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()
DMath.h28 bool IsPowerOfTwo(size_t n);
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h31 bool IsPowerOfTwo(uint64_t n);
58 ASSERT(IsPowerOfTwo(alignment)); in Align()
66 ASSERT(IsPowerOfTwo(alignment)); in AlignPtr()
74 ASSERT(IsPowerOfTwo(alignment)); in AlignPtr()
DMath.cpp82 bool IsPowerOfTwo(uint64_t n) { in IsPowerOfTwo() function
88 ASSERT(IsPowerOfTwo(alignment)); in IsPtrAligned()
95 ASSERT(IsPowerOfTwo(alignment)); in IsAligned()
DSlabAllocator.cpp74 ASSERT(IsPowerOfTwo(mAllocationAlignment)); in SlabAllocatorImpl()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp115 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/
DPerStage.h69 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
74 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
DDynamicUploader.cpp45 ASSERT(IsPowerOfTwo(alignment)); in Allocate()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DPerStage.h75 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
80 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
DBuddyAllocator.cpp23 ASSERT(IsPowerOfTwo(maxSize)); in BuddyAllocator()
61 ASSERT(IsPowerOfTwo(alignment)); in GetNextFreeAlignedBlock()
DBuddyMemoryAllocator.cpp29 ASSERT(IsPowerOfTwo(mMemoryBlockSize)); in BuddyMemoryAllocator()
DQueue.cpp94 ASSERT(IsPowerOfTwo(optimalOffsetAlignment)); in UploadTextureDataAligningBytesPerRowAndOffset()
95 ASSERT(IsPowerOfTwo(blockInfo.byteSize)); in UploadTextureDataAligningBytesPerRowAndOffset()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DResourceMemoryAllocatorVk.cpp57 ASSERT(IsPowerOfTwo(kBuddyHeapsSize)); in SingleTypeAllocator()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver.cc2256 if (a->align <= 0 || !utils::IsPowerOfTwo(a->align)) { in Structure()
/third_party/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi4534 <!-- 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/
Dtest15-pr18892.so.abi2486 …<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/
DDAGCombiner.cpp3806 auto IsPowerOfTwo = [](ConstantSDNode *C) { in visitSDIVLike() local
3820 if (!N->getFlags().hasExact() && ISD::matchUnaryPredicate(N1, IsPowerOfTwo)) { in visitSDIVLike()
/third_party/sqlite/src/
Dsqlite3.c14688 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro
155306 assert( IsPowerOfTwo(chngToIN) );
157539 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
/third_party/chromium/patch/
D0003-ohos-1115.patch113299 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/
Dstylo.hpp36340 IsPowerOfTwo(T x) in IsPowerOfTwo() function