patch-2.2.11 linux/arch/alpha/math-emu/fxtod.c
Next file: linux/arch/alpha/math-emu/fxtos.c
Previous file: linux/arch/alpha/math-emu/fp-emul.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Mon Aug 9 12:04:57 1999
- Orig file:
v2.2.10/linux/arch/alpha/math-emu/fxtod.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.2.10/linux/arch/alpha/math-emu/fxtod.c linux/arch/alpha/math-emu/fxtod.c
@@ -0,0 +1,11 @@
+#include "soft-fp.h"
+#include "double.h"
+
+int FXTOD(void *rd, void *rs2)
+{
+ FP_DECL_D(R);
+ long a = *(long *)rs2;
+
+ FP_FROM_INT_D(R, a, 64, long);
+ return __FP_PACK_D(rd, R);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)