ref: e0087b2a78d7229d8d2b148b8def688be6639797 dir: /sys/src/ape/lib/ap/gen/ldiv.c/
#include <stdlib.h> ldiv_t ldiv(long int numer, long int denom) { ldiv_t ans; ans.quot=numer/denom; ans.rem=numer-ans.quot*denom; return ans; }