On 9/13/22 17:18, Alex Colomar wrote: > @@ -287,7 +287,7 @@ typedef struct > > > /* Compute absolute value of N. */ > -extern intmax_t imaxabs (intmax_t __n) __THROW __attribute__ ((__const__)); > +#define imaxabs _Generic(INTMAX_C(0), long: labs, long long: llabs) Maybe we could add the case 'int: abs', in case ILP64 archs would want to use int for intmax_t. > > /* Return the `imaxdiv_t' representation of the value of NUMER over DENOM. */ > extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) --