News for hackers. Stuff that matters.
Re:A Special Kind of Hell: intmax_t in C and C++ by kps on Saturday December 05, 2020 @03:54PM (#25318250)
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.
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.
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.