Re:A Special Kind of Hell: intmax_t in C and C++
by loeg on Saturday December 05, 2020 @04:43PM
(#25318692)
It's probably fine for addition on an AVR, but I'm having trouble imagining what you'd want to count that needs more than 32 bits on an AVR.
[ Parent
| on HN ]
Re:A Special Kind of Hell: intmax_t in C and C++
by CamperBob2 on Saturday December 05, 2020 @10:51PM
(#25320860)
Tick counts. It's nice to be able to do time-difference subtractions (and comparisons!) without worrying about rollover.
Heck, I use 64-bit ints on 8051 cores that make an AVR look like something out of Star Trek.