2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Desc: C99 function lldiv
8 #include <aros/system.h>
9 #if defined(AROS_HAVE_LONG_LONG)
11 /*****************************************************************************
23 Compute quotient en remainder of two long long variables
27 denom = the denominator
30 a struct with two long ints quot and rem with
31 quot = numer / denom and rem = numer % denom.
33 typedef struct lldiv_t {
49 ******************************************************************************/
53 ret
.quot
= numer
/ denom
;
54 ret
.rem
= numer
% denom
;
56 /* See div.c for why this is done */
57 if (numer
>= 0 && ret
.rem
< 0)
65 #endif /* AROS_HAVE_LONG_LONG */