FENIX_libc/stdlib/lldiv.c

9 lines
172 B
C
Raw Normal View History

2020-12-01 23:40:03 +00:00
#include <stdlib.h>
2020-12-18 18:39:37 +00:00
struct lldiv_t lldiv(long long int x, long long int y) {
struct lldiv_t ret_val;
2020-12-01 23:40:03 +00:00
ret_val.quot = x / y;
ret_val.rem = x % y;
return ret_val;
}