]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_to_LF.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / float / lfloat / misc / cl_LF_to_LF.cc
1 // LF_to_LF().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "float/lfloat/cl_LF.h"
8
9
10 // Implementation.
11
12 namespace cln {
13
14 const cl_LF LF_to_LF (const cl_LF& x, uintC len)
15 {
16       var uintC oldlen = TheLfloat(x)->len;
17       if (len < oldlen) { return shorten(x,len); }
18       if (len > oldlen) { return extend(x,len); }
19       // len = oldlen
20       return x;
21 }
22
23 }  // namespace cln