logoalt Hacker News

mmoll • today at 9:36 AM • 1 reply • view on HN

I came here to say exactly that. There’s int_leastN_t for storage and int_fastN_t for computation. Stdint.h really gets a bad rap here.


Replies

lexicality • today at 9:39 AM

fwiw depending on use cases you might actually want to be using the fast variants for storage too, for example on arm64 you'll get aligned memory loads