Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: If you're going to write your own allocator, you need to respect the MEMORY_ALLOCATION_ALIGNMENT

$
0
0

[You're trying too hard. Just use DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT). -Raymond]

The K&R C handbook essentially says to do it this way. (It actually said to union with a type that was the same size as the alignment.)


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>