0001
0002 #include <linux/types.h>
0003 #include <linux/errno.h>
0004 #include <linux/uaccess.h>
0005
0006 #include <asm/sfp-machine.h>
0007 #include <math-emu/soft-fp.h>
0008 #include <math-emu/double.h>
0009 #include <math-emu/single.h>
0010
0011 int
0012 frsp(void *frD, void *frB)
0013 {
0014 FP_DECL_D(B);
0015 FP_DECL_EX;
0016
0017 #ifdef DEBUG
0018 printk("%s: D %p, B %p\n", __func__, frD, frB);
0019 #endif
0020
0021 FP_UNPACK_DP(B, frB);
0022
0023 #ifdef DEBUG
0024 printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
0025 #endif
0026
0027 __FP_PACK_DS(frD, B);
0028
0029 return FP_CUR_EXCEPTIONS;
0030 }