Home
last modified time | relevance | path

Searched refs:AllocAligned (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/lib/core/
Darena_test.cc63 char* alloc_aligned8 = a.AllocAligned(17, 8); in TEST()
65 char* alloc_aligned8_b = a.AllocAligned(8, 8); in TEST()
67 char* alloc_aligned8_c = a.AllocAligned(16, 8); in TEST()
69 char* alloc_aligned8_d = a.AllocAligned(8, 1); in TEST()
Darena.h45 char* AllocAligned(const size_t size, const size_t alignment) { in AllocAligned() function
/external/libtextclassifier/native/utils/base/
Darena_test.cc94 CheckAlignment(a->AllocAligned(s, 1), s, 1); in TestArena()
95 CheckAlignment(a->AllocAligned(s + 1, 2), s + 1, 2); in TestArena()
96 CheckAlignment(a->AllocAligned(s + 2, 2), s + 2, 2); in TestArena()
97 CheckAlignment(a->AllocAligned(s + 3, 4), s + 3, 4); in TestArena()
98 CheckAlignment(a->AllocAligned(s + 4, 4), s + 4, 4); in TestArena()
99 CheckAlignment(a->AllocAligned(s + 5, 4), s + 5, 4); in TestArena()
100 CheckAlignment(a->AllocAligned(s + 6, 4), s + 6, 4); in TestArena()
Darena.h201 void* AllocAligned(const size_t size, const int align) { in AllocAligned() function
208 return new (reinterpret_cast<T*>(AllocAligned(sizeof(T), alignof(T)))) in AllocAndInit()
219 void* return_value = AllocAligned(size, align); in CallocAligned()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dfifo.hpp57 T* pNewBlock = (T*)arena.AllocAligned(sizeof(T) * mBlockSize, KNOB_SIMD_WIDTH * 4); in clear()
123 T* newBlock = (T*)arena.AllocAligned(sizeof(T) * mBlockSize, KNOB_SIMD_WIDTH * 4); in enqueue_try_nosync()
Darena.h378 void* AllocAligned(size_t size, size_t align) in AllocAligned() function
421 return AllocAligned(size, align); in AllocAligned()
424 void* Alloc(size_t size) { return AllocAligned(size, 1); } in Alloc()
431 pAlloc = AllocAligned(size, align); in AllocAlignedSync()
Dbinner.cpp1172 float* pAttribs = (float*)pArena->AllocAligned(numScalarAttribs * 3 * sizeof(float), 16); in BinTrianglesImpl()
1178 desc.pTriBuffer = (float*)pArena->AllocAligned(4 * 4 * sizeof(float), 16); in BinTrianglesImpl()
1388 (float*)pArena->AllocAligned(3 * numScalarAttribs * sizeof(float), 16); in BinPostSetupPointsImpl()
1395 float* pTriBuffer = (float*)pArena->AllocAligned(4 * sizeof(float), 16); in BinPostSetupPointsImpl()
1543 desc.pAttribs = (float*)pArena->AllocAligned(numScalarAttribs * 3 * sizeof(float), 16); in BinPostSetupPointsImpl()
1548 float* pTriBuffer = (float*)pArena->AllocAligned(4 * sizeof(float), 16); in BinPostSetupPointsImpl()
1843 desc.pAttribs = (float*)pArena->AllocAligned(numScalarAttribs * 3 * sizeof(float), 16); in BinPostSetupLinesImpl()
1848 desc.pTriBuffer = (float*)pArena->AllocAligned(4 * 4 * sizeof(float), 16); in BinPostSetupLinesImpl()
Dfrontend.cpp1190 pGsBuffers->pGsIn = (uint8_t*)pArena->AllocAligned(vertexInBufferSize, 32); in AllocateGsBuffers()
1197 pGsBuffers->pGsOut[i] = (uint8_t*)pArena->AllocAligned(vertexBufferSize, 32); in AllocateGsBuffers()
1204 pGsBuffers->pGsTransposed = (uint8_t*)pArena->AllocAligned(transposedBufferSize, 32); in AllocateGsBuffers()
1214 (uint8_t*)pArena->AllocAligned(AlignUp(gsState.maxNumVerts * 2, 32), 32); in AllocateGsBuffers()
1749 pSoPrimData = (uint32_t*)pDC->pArena->AllocAligned(4096, 16); in ProcessDraw()
Dapi.cpp1564 COMPUTE_DESC* pTaskData = (COMPUTE_DESC*)pDC->pArena->AllocAligned(sizeof(COMPUTE_DESC), 64); in SwrDispatch()
1675 pState->pPrivateState = pState->pArena->AllocAligned(pContext->privateStateSize, in SwrGetPrivateContextState()
1695 return pDC->pState->pArena->AllocAligned(size, align); in SwrAllocDrawContextMemory()
/external/libtextclassifier/native/utils/grammar/semantics/
Dvalue.h40 arena->AllocAligned(sizeof(T), alignof(T)))) { in Create()