Home
last modified time | relevance | path

Searched refs:aligned_ptr (Results 1 – 9 of 9) sorted by relevance

/external/ComputeLibrary/arm_compute/runtime/
DMemoryRegion.h60 void *aligned_ptr = _mem.get(); in IMemoryRegion() local
61 std::align(alignment, size, aligned_ptr, space); in IMemoryRegion()
62 _ptr = aligned_ptr; in IMemoryRegion()
/external/libcxx/test/support/
Dcontrolled_allocators.hpp368 char* aligned_ptr = (char*)::operator new(alloc_size(n*sizeof(T))); in allocate() local
369 assert(is_max_aligned(aligned_ptr)); in allocate()
371 char* unaligned_ptr = aligned_ptr + alignof(T); in allocate()
382 char* aligned_ptr = ((char*)p) - alignof(T); in deallocate() local
383 assert(is_max_aligned(aligned_ptr)); in deallocate()
387 return ::operator delete(static_cast<void*>(aligned_ptr)); in deallocate()
/external/ComputeLibrary/tests/validation/NEON/UNIT/
DTensorAllocator.cpp114 void *aligned_ptr = raw_data.get(); in TEST_CASE() local
115 std::align(required_alignment, total_size_in_bytes, aligned_ptr, space); in TEST_CASE()
117 ARM_COMPUTE_ASSERT(bool(tensor.allocator()->import_memory(aligned_ptr))); in TEST_CASE()
123 auto *typed_ptr = reinterpret_cast<float *>(aligned_ptr); in TEST_CASE()
/external/cronet/buildtools/third_party/libc++/trunk/src/
Dmemory_resource.cpp434 void* aligned_ptr = align_down(align, bytes, new_ptr, new_capacity); in __try_allocate_from_chunk() local
435 if (aligned_ptr != nullptr) in __try_allocate_from_chunk()
437 return aligned_ptr; in __try_allocate_from_chunk()
443 void* aligned_ptr = align_down(align, bytes, new_ptr, new_capacity); in __try_allocate_from_chunk() local
444 if (aligned_ptr != nullptr) in __try_allocate_from_chunk()
446 return aligned_ptr; in __try_allocate_from_chunk()
/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Dcontrolled_allocators.h374 char* aligned_ptr = (char*)::operator new(alloc_size(n*sizeof(T))); in allocate() local
375 assert(is_max_aligned(aligned_ptr)); in allocate()
377 char* unaligned_ptr = aligned_ptr + alignof(T); in allocate()
388 char* aligned_ptr = ((char*)p) - alignof(T); in deallocate() local
389 assert(is_max_aligned(aligned_ptr)); in deallocate()
393 return ::operator delete(static_cast<void*>(aligned_ptr)); in deallocate()
/external/ComputeLibrary/tests/validation/CL/UNIT/
DTensorAllocator.cpp241 void *aligned_ptr = raw_data.get(); in TEST_CASE() local
242 std::align(alignment, total_size_in_bytes, aligned_ptr, space); in TEST_CASE()
244 cl::Buffer wrapped_buffer(import_malloc_memory_helper(aligned_ptr, total_size_in_bytes)); in TEST_CASE()
251 auto *typed_ptr = reinterpret_cast<float *>(aligned_ptr); in TEST_CASE()
/external/tensorflow/tensorflow/core/common_runtime/
Dpool_allocator.cc80 size_t aligned_ptr = reinterpret_cast<size_t>(user_ptr) + alignment; in PrepareChunk() local
81 user_ptr = reinterpret_cast<void*>(aligned_ptr & ~(alignment - 1)); in PrepareChunk()
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/
Dtest_cl_ext_image_buffer.hpp38 static inline void* aligned_ptr(void* ptr, size_t alignment) in aligned_ptr() function
Dtest_cl_ext_image_from_buffer.cpp538 (void*)((char*)(aligned_ptr(host_ptr, in image_from_buffer_alignment_negative()