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