logoalt Hacker News

CodesInChaostoday at 8:34 AM0 repliesview on HN

Yes, large allocations need to be aligned to `alignof(max_align_t)`. But small allocations could have a smaller alignment. For example a single byte allocation can actually be a single byte with no alignment, since types can't have an alignment larger than their size.