]> www.ginac.de Git - cln.git/blob - src/float/lfloat/division/cl_LF_floor22.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / float / lfloat / division / cl_LF_floor22.cc
1 // floor2().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/lfloat.h"
8
9
10 // Implementation.
11
12 #include "cl_LF.h"
13
14 namespace cln {
15
16 const cl_LF_div_t floor2 (const cl_LF& x, const cl_LF& y)
17 {
18 // Methode:
19 // (q,r) := floor(x/y). Liefere q und x-y*q = y*r.
20         var cl_LF_div_t q_r = floor2(x/y);
21         var cl_I& q = q_r.quotient;
22         var cl_LF& r = q_r.remainder;
23         return cl_LF_div_t(q,y*r);
24 }
25
26 }  // namespace cln