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

That's a good point, and I could have worded that better. What I implemented accepts an explicit alignment parameter because it made the allocator easier to explain. A real malloc() only guarantees alignment suitable for any object type (typically alignof(max_align_t)), since it has no idea what the caller will store there.


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

Search: