]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #include <linux/types.h> |
2 | #include <linux/errno.h> | |
7c0f6ba6 | 3 | #include <linux/uaccess.h> |
1da177e4 | 4 | |
d2b194ed KG |
5 | #include <asm/sfp-machine.h> |
6 | #include <math-emu/soft-fp.h> | |
7 | #include <math-emu/double.h> | |
8 | #include <math-emu/single.h> | |
1da177e4 LT |
9 | |
10 | int | |
11 | frsp(void *frD, void *frB) | |
12 | { | |
13 | FP_DECL_D(B); | |
d2b194ed | 14 | FP_DECL_EX; |
1da177e4 LT |
15 | |
16 | #ifdef DEBUG | |
e48b1b45 | 17 | printk("%s: D %p, B %p\n", __func__, frD, frB); |
1da177e4 LT |
18 | #endif |
19 | ||
d2b194ed | 20 | FP_UNPACK_DP(B, frB); |
1da177e4 LT |
21 | |
22 | #ifdef DEBUG | |
23 | printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c); | |
24 | #endif | |
25 | ||
d2b194ed KG |
26 | __FP_PACK_DS(frD, B); |
27 | ||
28 | return FP_CUR_EXCEPTIONS; | |
1da177e4 | 29 | } |