Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / lldiv.c
blob7df111be9d09b45ed6c17e8a0d96daf1f06e37a0
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ISO C function lldiv
6 */
8 #include <aros/system.h>
9 #if defined(AROS_HAVE_LONG_LONG)
11 /*****************************************************************************
13 NAME */
14 #include <stdlib.h>
16 lldiv_t lldiv (
18 /* SYNOPSIS */
19 long long int numer,
20 long long int denom)
22 /* FUNCTION
23 Compute quotient en remainder of two long long variables
25 INPUTS
26 numer = the numerator
27 denom = the denominator
29 RESULT
30 a struct with two long ints quot and rem with
31 quot = numer / denom and rem = numer % denom.
33 typedef struct lldiv_t {
34 long long int quot;
35 long long int rem;
36 } lldiv_t;
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 div(), ldiv()
47 INTERNALS
49 ******************************************************************************/
50 #if 0
51 /* Currently disabled because of linking issues */
53 lldiv_t ret;
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)
61 ret.quot++;
62 ret.rem -= denom;
65 return ret;
67 #else
69 abort();
71 #endif /* 0 */
72 #endif /* AROS_HAVE_LONG_LONG */