Home
last modified time | relevance | path

Searched refs:elemSize (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/src/core/
DSkTSearch.h39 int SkTSearch(const T base[], int count, const K& key, size_t elemSize, const LESS& less) in SkTSearch() argument
53 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch()
61 const T* elem = (const T*)((const char*)base + hi * elemSize); in SkTSearch()
73 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument
74 return SkTSearch(base, count, target, elemSize, in SkTSearch()
80 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument
81 return SkTSearch(base, count, target, elemSize, [](const T& a, const T& b) { return a < b; }); in SkTSearch()
87 int SkTSearch(T* base[], int count, T* target, size_t elemSize) { in SkTSearch() argument
88 return SkTSearch(base, count, target, elemSize, in SkTSearch()
93 size_t target_len, size_t elemSize);
[all …]
DSkTSearch.cpp16 size_t elemSize) in index_into_base() argument
18 return *(const char*const*)((const char*)base + index * elemSize); in index_into_base()
22 size_t target_len, size_t elemSize) in SkStrSearch() argument
35 const char* elem = index_into_base(base, mid, elemSize); in SkStrSearch()
46 const char* elem = index_into_base(base, hi, elemSize); in SkStrSearch()
58 size_t elemSize) in SkStrSearch() argument
60 return SkStrSearch(base, count, target, strlen(target), elemSize); in SkStrSearch()
64 size_t len, size_t elemSize) in SkStrLCSearch() argument
70 return SkStrSearch(base, count, tolc.lc(), len, elemSize); in SkStrLCSearch()
74 size_t elemSize) in SkStrLCSearch() argument
[all …]
DSkMalloc.cpp8 void* sk_calloc_throw(size_t count, size_t elemSize) { in sk_calloc_throw() argument
9 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw()
12 void* sk_malloc_throw(size_t count, size_t elemSize) { in sk_malloc_throw() argument
13 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
16 void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize) { in sk_realloc_throw() argument
17 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw()
20 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() argument
21 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
DSkDataTable.cpp25 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count, in SkDataTable() argument
30 fElemSize = elemSize; // non-zero signals we use fElems instead of fDir in SkDataTable()
113 sk_sp<SkDataTable> SkDataTable::MakeCopyArray(const void* array, size_t elemSize, int count) { in MakeCopyArray() argument
118 size_t bufferSize = elemSize * count; in MakeCopyArray()
122 return sk_sp<SkDataTable>(new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer)); in MakeCopyArray()
125 sk_sp<SkDataTable> SkDataTable::MakeArrayProc(const void* array, size_t elemSize, int count, in MakeArrayProc() argument
130 return sk_sp<SkDataTable>(new SkDataTable(array, elemSize, count, proc, ctx)); in MakeArrayProc()
DSkDeque.cpp28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument
29 : fElemSize(elemSize) in SkDeque()
38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument
39 : fElemSize(elemSize) in SkDeque()
46 if (storageSize >= sizeof(Block) + elemSize) { in SkDeque()
/third_party/flutter/skia/src/core/
DSkTSearch.h39 int SkTSearch(const T base[], int count, const K& key, size_t elemSize, LESS& less) in SkTSearch() argument
53 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch()
61 const T* elem = (const T*)((const char*)base + hi * elemSize); in SkTSearch()
78 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument
80 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
90 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument
92 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
103 int SkTSearch(T* base[], int count, T* target, size_t elemSize) { in SkTSearch() argument
105 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
109 size_t target_len, size_t elemSize);
[all …]
DSkTSearch.cpp16 size_t elemSize) in index_into_base() argument
18 return *(const char*const*)((const char*)base + index * elemSize); in index_into_base()
22 size_t target_len, size_t elemSize) in SkStrSearch() argument
35 const char* elem = index_into_base(base, mid, elemSize); in SkStrSearch()
46 const char* elem = index_into_base(base, hi, elemSize); in SkStrSearch()
58 size_t elemSize) in SkStrSearch() argument
60 return SkStrSearch(base, count, target, strlen(target), elemSize); in SkStrSearch()
64 size_t len, size_t elemSize) in SkStrLCSearch() argument
70 return SkStrSearch(base, count, tolc.lc(), len, elemSize); in SkStrLCSearch()
74 size_t elemSize) in SkStrLCSearch() argument
[all …]
DSkMallocPixelRef.cpp15 void* sk_calloc_throw(size_t count, size_t elemSize) { in sk_calloc_throw() argument
16 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw()
19 void* sk_malloc_throw(size_t count, size_t elemSize) { in sk_malloc_throw() argument
20 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
23 void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize) { in sk_realloc_throw() argument
24 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw()
27 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() argument
28 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
DSkDataTable.cpp25 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count, in SkDataTable() argument
30 fElemSize = elemSize; // non-zero signals we use fElems instead of fDir in SkDataTable()
113 sk_sp<SkDataTable> SkDataTable::MakeCopyArray(const void* array, size_t elemSize, int count) { in MakeCopyArray() argument
118 size_t bufferSize = elemSize * count; in MakeCopyArray()
122 return sk_sp<SkDataTable>(new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer)); in MakeCopyArray()
125 sk_sp<SkDataTable> SkDataTable::MakeArrayProc(const void* array, size_t elemSize, int count, in MakeArrayProc() argument
130 return sk_sp<SkDataTable>(new SkDataTable(array, elemSize, count, proc, ctx)); in MakeArrayProc()
DSkDeque.cpp28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument
29 : fElemSize(elemSize) in SkDeque()
38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument
39 : fElemSize(elemSize) in SkDeque()
46 if (storageSize >= sizeof(Block) + elemSize) { in SkDeque()
/third_party/flutter/skia/include/private/
DSkMalloc.h78 SK_API extern void* sk_calloc_throw(size_t count, size_t elemSize);
79 SK_API extern void* sk_malloc_throw(size_t count, size_t elemSize);
80 SK_API extern void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize);
95 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
/third_party/skia/include/private/
DSkMalloc.h77 SK_API extern void* sk_calloc_throw(size_t count, size_t elemSize);
78 SK_API extern void* sk_malloc_throw(size_t count, size_t elemSize);
79 SK_API extern void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize);
93 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
DSkDeque.h32 explicit SkDeque(size_t elemSize, int allocCount = 1);
33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1);
38 size_t elemSize() const { return fElemSize; } in elemSize() function
/third_party/flutter/skia/include/core/
DSkDataTable.h87 static sk_sp<SkDataTable> MakeCopyArray(const void* array, size_t elemSize, int count);
89 static sk_sp<SkDataTable> MakeArrayProc(const void* array, size_t elemSize, int count,
109 SkDataTable(const void* array, size_t elemSize, int count,
DSkDeque.h32 explicit SkDeque(size_t elemSize, int allocCount = 1);
33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1);
38 size_t elemSize() const { return fElemSize; } in elemSize() function
/third_party/skia/include/core/
DSkDataTable.h86 static sk_sp<SkDataTable> MakeCopyArray(const void* array, size_t elemSize, int count);
88 static sk_sp<SkDataTable> MakeArrayProc(const void* array, size_t elemSize, int count,
108 SkDataTable(const void* array, size_t elemSize, int count,
/third_party/skia/src/xml/
DSkDOMParser.cpp92 void SkDOMParser::startCommon(const char elem[], size_t elemSize, SkDOM::Type type) { in startCommon() argument
97 fElemName = dupstr(fAlloc, elem, elemSize); in startCommon()
DSkDOMParser.h33 void startCommon(const char elem[], size_t elemSize, SkDOM::Type type);
/third_party/skia/tests/
DDequeTest.cpp15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
/third_party/flutter/skia/tests/
DDequeTest.cpp15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
/third_party/vk-gl-cts/framework/delibs/decpp/
DdePoolArray.hpp379 deUintptr elemSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in getPtr() local
380 T* ptr = (T*)((deUint8*)m_pageTable[pageNdx] + (subNdx*elemSize)); in getPtr()
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/
DReactorUnitTests.cpp3015 constexpr auto elemSize = sizeof(buffer[0]); in TEST() local
3018 1 * elemSize, in TEST()
3019 6 * elemSize, in TEST()
3020 11 * elemSize, in TEST()
3021 13 * elemSize in TEST()
3058 constexpr auto elemSize = sizeof(buffer[0]); in TEST() local
3061 1 * elemSize, in TEST()
3062 6 * elemSize, in TEST()
3063 11 * elemSize, in TEST()
3064 13 * elemSize in TEST()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateComputeTests.cpp866 const auto elemSize = static_cast<VkDeviceSize>(sizeof(decltype(srcValues)::value_type)); in iterateTransfer() local
886 const auto offset = elemSize * stateIdx; in iterateTransfer()
896 const VkBufferCopy region = { offset, offset, elemSize }; in iterateTransfer()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
DvktDynamicStateComputeTests.cpp866 const auto elemSize = static_cast<VkDeviceSize>(sizeof(decltype(srcValues)::value_type)); in iterateTransfer() local
886 const auto offset = elemSize * stateIdx; in iterateTransfer()
896 const VkBufferCopy region = { offset, offset, elemSize }; in iterateTransfer()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DvalidationCL.cpp2723 const size_t elemSize = GetElementSize(*image_format); in ValidateCreateImage() local
2724 if (elemSize == 0u) in ValidateCreateImage()
2731 : image_desc->image_width * elemSize; in ValidateCreateImage()
2789 if (image_desc->image_row_pitch < image_desc->image_width * elemSize) in ValidateCreateImage()
2794 if ((image_desc->image_row_pitch % elemSize) != 0u) in ValidateCreateImage()

12