]> www.ginac.de Git - cln.git/blob - src/real/conv/cl_F_from_R_def.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / real / conv / cl_F_from_R_def.cc
1 // cl_float().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 #include "cl_R.h"
13
14 namespace cln {
15
16 CL_INLINE const cl_F CL_INLINE_DECL(cl_float) (const cl_R& x)
17 {
18         if (rationalp(x)) {
19                 DeclareType(cl_RA,x);
20                 return cl_float(x);
21         } else {
22                 DeclareType(cl_F,x);
23                 return x;
24         }
25 }
26
27 }  // namespace cln