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