Eufalconimorph@discuss.tchncs.detoShowerthoughts@lemmy.world•Now no one will ever see all those super long !remindme bot posts set for 5, 10 or 15 years on Reddit
1·
1 year agoYep, it’s just Murphy’s Law of data: everything you regret posting will be in public archives forever, everything you want to preserve will have gotten deleted the next time you try to find it.
#define max(x,y) ( { __auto_type __x = (x); __auto_type __y = (y); __x > __y ? __x : __y; })
GNU C. Also works with Clang. Avoids evaluating the arguments multiple times. The optimizer will convert the branch into a conditional move, if it doesn’t I’d replace the ternary with the “bit hacker 2” version.