]> www.ginac.de Git - cln.git/blob - src/float/conv/cl_F_from_I.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / float / conv / cl_F_from_I.cc
1 // cl_float().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/float.h"
8
9
10 // Implementation.
11
12 #include "float/cl_F.h"
13 #include "float/sfloat/cl_SF.h"
14 #include "float/ffloat/cl_FF.h"
15 #include "float/dfloat/cl_DF.h"
16 #include "float/lfloat/cl_LF.h"
17
18 namespace cln {
19
20 const cl_F cl_float (const cl_I& x, const cl_F& y)
21 {
22         floattypecase(y
23         ,       return cl_I_to_SF(x);
24         ,       return cl_I_to_FF(x);
25         ,       return cl_I_to_DF(x);
26         ,       return cl_I_to_LF(x,TheLfloat(y)->len);
27         );
28 }
29
30 }  // namespace cln