|
|
|
|
|
by epcoa
601 days ago
|
|
I’d probably just go ahead on the original implementation and this and use uint32_t. The submitters because you might as well be more cache friendly on 64 bit systems, and here unsigned only guarantees 16 bits. People still use AVRs and the like where sizeof unsigned == 2. Granted, you’d probably use a 16 bit table there, but the portability costs nothing and gains clarity. This version has the caveat that it is technically not thread safe. |
|
Your suggestion will break on that.
We clearly want uint_least32_t.