]> www.ginac.de Git - cln.git/blobdiff - src/float/conv/cl_F_from_RA.cc
Initial revision
[cln.git] / src / float / conv / cl_F_from_RA.cc
diff --git a/src/float/conv/cl_F_from_RA.cc b/src/float/conv/cl_F_from_RA.cc
new file mode 100644 (file)
index 0000000..08bc77f
--- /dev/null
@@ -0,0 +1,26 @@
+// cl_float().
+
+// General includes.
+#include "cl_sysdep.h"
+
+// Specification.
+#include "cl_float.h"
+
+
+// Implementation.
+
+#include "cl_F.h"
+#include "cl_SF.h"
+#include "cl_FF.h"
+#include "cl_DF.h"
+#include "cl_LF.h"
+
+const cl_F cl_float (const cl_RA& x, const cl_F& y)
+{
+       floattypecase(y
+       ,       return cl_RA_to_SF(x);
+       ,       return cl_RA_to_FF(x);
+       ,       return cl_RA_to_DF(x);
+       ,       return cl_RA_to_LF(x,TheLfloat(y)->len);
+       );
+}