Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Many (most? all?) allocators are guaranteed to give you back aligned pointers.

For instance, jemalloc(3) on amd64 platforms will give back 16-byte aligned pointers:

  [...] The allocated space is suitably aligned
  (after possible pointer coercion) for storage of any type of object.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: