vfs: Make __vfs_write() static
[linux/fpc-iii.git] / arch / powerpc / math-emu / frsp.c
blobcb33e3d9bbb2d8b8e806e986172e58385ec4218d
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
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>
11 int
12 frsp(void *frD, void *frB)
14 FP_DECL_D(B);
15 FP_DECL_EX;
17 #ifdef DEBUG
18 printk("%s: D %p, B %p\n", __func__, frD, frB);
19 #endif
21 FP_UNPACK_DP(B, frB);
23 #ifdef DEBUG
24 printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
25 #endif
27 __FP_PACK_DS(frD, B);
29 return FP_CUR_EXCEPTIONS;