Re:Almost Always Unsigned
by graphitemaster on Sunday January 02, 2022 @11:27AM
(#29770068)
In this case the problem is more specifically the use of uint32_t. I never quite mentioned in the article that if you're going to use unsigned integers for this sort of thing to always use the native-word-size unsigned type, e.g size_t, if you actually change that to uint64_t (or size_t) the code generation is better as you can see here: https://godbolt.org/z/11nEz6EPT
[ Parent
| on HN ]
There are no comments on this comment yet.