]> www.ginac.de Git - cln.git/blobdiff - src/float/conv/cl_F_from_I_f.cc
Initial revision
[cln.git] / src / float / conv / cl_F_from_I_f.cc
diff --git a/src/float/conv/cl_F_from_I_f.cc b/src/float/conv/cl_F_from_I_f.cc
new file mode 100644 (file)
index 0000000..3c4fc50
--- /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_I& x, cl_float_format_t f)
+{
+       floatformatcase((uintL)f
+       ,       return cl_I_to_SF(x);
+       ,       return cl_I_to_FF(x);
+       ,       return cl_I_to_DF(x);
+       ,       return cl_I_to_LF(x,len);
+       );
+}