source:
trunk/sys/dietlibc/lldiv.c
@
291
Last change on this file since 291 was 1, checked in by , 8 years ago | |
---|---|
File size: 198 bytes |
Line | |
---|---|
1 | #define _GNU_SOURCE |
2 | #include <stdlib.h> |
3 | |
4 | lldiv_t lldiv(long long numerator, long long denominator) { |
5 | lldiv_t x; |
6 | x.quot=numerator/denominator; |
7 | x.rem=numerator-x.quot*denominator; |
8 | return x; |
9 | } |
Note: See TracBrowser
for help on using the repository browser.