1570af302Sopenharmony_ci#include <inttypes.h> 2570af302Sopenharmony_ci 3570af302Sopenharmony_ciimaxdiv_t imaxdiv(intmax_t num, intmax_t den) 4570af302Sopenharmony_ci{ 5570af302Sopenharmony_ci return (imaxdiv_t){ num/den, num%den }; 6570af302Sopenharmony_ci} 7