https://bugs.kde.org/show_bug.cgi?id=433859

--- Comment #2 from Paul Floyd <pjfl...@wanadoo.fr> ---
For the C++ aligned allocators libc++ bumps up the allocation size if it is
less than sizeof(void*) and then uses posix_memalign

libstdc++ does a popcnt (!!!) to check for power of 2 then calls aligned_alloc
(actually it looks like a feature check for aligned_alloc _aligned_malloc
(Windows) posix_memalign and then memalign),
It will also bump up size to be an integer multiple of 

I need to look at the standard to see what size triggers use of aligned
allocators.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to