Re:Maximal Min() and Max()
by layer8 on Thursday August 08, 2024 @12:53PM
(#41193625)
The macros automatically derived the signedness and the minimum and maximum value of the integral types involved, in a way that didn’t made platform-specific assumptions like two’s complement or no padding bits. Cases like comparing signed long to unsigned long also needed extra logic, due to there being no larger type that encompasses both. I don’t remember the details, but it did have a significant number of nested macro invocations.
[ Parent
| on HN ]
There are no comments on this comment yet.