Home | History | Annotate | Download | only in util

Lines Matching defs:aligned

16 *** Platform checks for aligned malloc functions                           ***
22 // On 64-bit systems, glibc's malloc returns 16-byte-aligned pointers, see:
23 // http://www.gnu.org/s/libc/manual/html_node/Aligned-Memory-Blocks.html
36 // FreeBSD 6 seems to have 16-byte aligned malloc
38 // FreeBSD 7 seems to have 16-byte aligned malloc except on ARM and MIPS architectures
83 *** Implementation of handmade aligned functions ***
86 /* ----- Hand made implementations of aligned malloc/free and realloc ----- */
88 /** \internal Like malloc, but the returned pointer is guaranteed to be 16-byte aligned.
95 void *aligned = reinterpret_cast<void*>((reinterpret_cast<size_t>(original) & ~(size_t(15))) + 16);
96 *(reinterpret_cast<void**>(aligned) - 1) = original;
97 return aligned;
107 * \brief Reallocates aligned memory.
117 void *aligned = reinterpret_cast<void*>((reinterpret_cast<size_t>(original) & ~(size_t(15))) + 16);
118 *(reinterpret_cast<void**>(aligned) - 1) = original;
119 return aligned;
123 *** Implementation of generic aligned realloc (when no realloc can be used)***
130 * \brief Reallocates aligned memory.
131 * Allows reallocation with aligned ptr types. This implementation will
164 *** Implementation of portable aligned versions of malloc/free/realloc ***
239 * \brief Reallocates an aligned block of memory.
275 *** Implementation of conditionally aligned functions ***
278 /** \internal Allocates \a size bytes. If Align is true, then the returned ptr is 16-byte-aligned.
341 *** Implementation of aligned new/delete-like functions ***
430 /** \internal Returns the index of the first element of the array that is well aligned for vectorization.
435 * \note If no element of the array is well aligned, the size of the array is returned. Typically,
436 * for example with SSE, "well aligned" means 16-byte-aligned. If vectorization is disabled or if the
437 * packet size for the given scalar type is 1, then everything is considered well-aligned.
462 // There is vectorization for this scalar type, but the array is not aligned to the size of a single scalar.
463 // Consequently, no element of the array is well aligned.
541 * Declares, allocates and construct an aligned buffer named NAME of SIZE elements of type TYPE on the stack
633 * \brief STL compatible allocator to use with with 16 byte aligned types