instead of the current glm_max and glm_imax function,, we could provide a single macro implementation which works for all types using c23 typeof, something like
#define MAX(a, b) ({ \
typeof(a) _a = (a); \
typeof(b) _b = (b); \
_a > _b ? _a : _b; \
})
Just an idea, not sure if it's worth it
instead of the current glm_max and glm_imax function,, we could provide a single macro implementation which works for all types using c23 typeof, something like
Just an idea, not sure if it's worth it