3 ms·
C99, which introduced `intmax_t`, also requires that a compiler provide a `long long int` of at least 64 bits. So on the bright side, `intmax_t` will be at leas
by kps 6y ago
C99, which introduced `intmax_t`, also requires that a compiler provide a `long long int` of at least 64 bits. So on the bright side, `intmax_t` will be at least 64 bits, and on the down side, you really don't want to use that type on an AVR.
- loeg 6y agoIt'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.
- CamperBob2 6y agoTick 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.