2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
5 Desc: ISO C 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 ******************************************************************************/
51 /* Currently disabled because of linking issues */
55 ret
.quot
= numer
/ denom
;
56 ret
.rem
= numer
% denom
;
58 /* See div.c for why this is done */
59 if (numer
>= 0 && ret
.rem
< 0)
72 #endif /* AROS_HAVE_LONG_LONG */