Searched refs:SkIsAlign4 (Results 1 – 23 of 23) sorted by relevance
121 template <typename T> static constexpr bool SkIsAlign4(T x) { return 0 == (x & 3); } in SkIsAlign4() function128 return sizeof(void*) == 8 ? SkIsAlign8(x) : SkIsAlign4(x); in SkIsAlignPtr()
64 SkASSERT(SkIsAlign4(bytes));156 SkASSERT(SkIsAlign4(this->internalSize())); in validate()
26 static_assert(SkIsAlign4(kDescriptionTagBodySize), "Description must be aligned to 4-bytes.");56 static_assert(SkIsAlign4(sizeof(kCopyrightTagBody)), "Copyright must be aligned to 4-bytes.");
237 return SkIsAlign4((uintptr_t)ptr); in IsPtrAlign4()
48 SkASSERT(SkIsAlign4((uintptr_t)external));
78 reader->validate(SkIsAlign4(offsetToRestore) && offsetToRestore >= reader->offset()); in validate_offsetToRestore()
35 static_assert(SkIsAlign4(sizeof(BlitterUniforms)), "");
46 static_assert(SkIsAlign4(sizeof(SkScalar)), "SkScalar size alignment"); in StorageSize()
353 SkASSERT(SkIsAlign4(offset)); in MakeInternal()
217 return SkIsAlign4((uintptr_t)ptr); in IsPtrAlign4()
108 reader->validate(SkIsAlign4(offsetToRestore) && offsetToRestore >= reader->offset()); in validate_offsetToRestore()
42 static_assert(SkIsAlign4(sizeof(SkScalar)), "SkScalar size alignment"); in StorageSize()
101 SkASSERT(SkIsAlign4(bytes));157 SkASSERT(SkIsAlign4(this->internalSize())); in validate()
68 SkASSERT(SkIsAlign4(this->keyLength()));
555 template <typename T> static constexpr bool SkIsAlign4(T x) { return 0 == (x & 3); } in SkIsAlign4() function562 return sizeof(void*) == 8 ? SkIsAlign8(x) : SkIsAlign4(x); in SkIsAlignPtr()
163 if (!SkTFitsIn<int>(keyLength) || !SkIsAlign4(keyLength)) { in BuildFromData()
407 SkASSERT(!this->colorXform() || SkIsAlign4(swizzleBytes)); in allocateStorage()
575 SkASSERT(!this->colorXform() || SkIsAlign4(swizzleBytes)); in allocateStorage()
412 SkASSERT(!this->colorXform() || SkIsAlign4(swizzleBytes)); in allocateStorage()
624 SkASSERT(!this->colorXform() || SkIsAlign4(swizzleBytes)); in allocateStorage()
346 SkASSERT(SkIsAlign4(data->size())); in onOpenStream()