2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Desc: C99 function ldiv
8 /*****************************************************************************
20 Compute quotient en remainder of two long variables
24 denom = the denominator
27 a struct with two long ints quot and rem with
28 quot = numer / denom and rem = numer % denom.
30 typedef struct ldiv_t {
46 ******************************************************************************/
50 ret
.quot
= numer
/ denom
;
51 ret
.rem
= numer
% denom
;
53 /* See div() for why we do this */
54 if (numer
>= 0 && ret
.rem
< 0)