]> www.ginac.de Git - cln.git/blob - src/integer/division/cl_I_exquopos.cc
* */*: Removed problematic stdin, stdout and stderr definitions.
[cln.git] / src / integer / division / cl_I_exquopos.cc
1 // exquopos().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/integer.h"
8
9
10 // Implementation.
11
12 #include "cl_I.h"
13
14 namespace cln {
15
16 const cl_I exquopos (const cl_I& x, const cl_I& y)
17 {
18 // Methode:
19 // (exquopos x y) :==
20 // (DIVIDE x y) -> q,r
21 // Falls r<>0, Error.
22 // Liefere q.
23   var cl_I_div_t q_r = cl_divide(x,y);
24   if (!zerop(q_r.remainder)) { cl_error_exquo(x,y); }
25   return q_r.quotient;
26 }
27
28 }  // namespace cln