Home
last modified time | relevance | path

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

/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/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()