1*b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
25cd27208SKumar Gala #include <linux/types.h>
35cd27208SKumar Gala #include <linux/errno.h>
47c0f6ba6SLinus Torvalds #include <linux/uaccess.h>
55cd27208SKumar Gala
6d2b194edSKumar Gala #include <asm/sfp-machine.h>
7d2b194edSKumar Gala #include <math-emu/soft-fp.h>
8d2b194edSKumar Gala #include <math-emu/double.h>
9d2b194edSKumar Gala #include <math-emu/single.h>
105cd27208SKumar Gala
115cd27208SKumar Gala int
frsp(void * frD,void * frB)125cd27208SKumar Gala frsp(void *frD, void *frB)
135cd27208SKumar Gala {
145cd27208SKumar Gala FP_DECL_D(B);
15d2b194edSKumar Gala FP_DECL_EX;
165cd27208SKumar Gala
175cd27208SKumar Gala #ifdef DEBUG
18e48b1b45SHarvey Harrison printk("%s: D %p, B %p\n", __func__, frD, frB);
195cd27208SKumar Gala #endif
205cd27208SKumar Gala
21d2b194edSKumar Gala FP_UNPACK_DP(B, frB);
225cd27208SKumar Gala
235cd27208SKumar Gala #ifdef DEBUG
245cd27208SKumar Gala printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
255cd27208SKumar Gala #endif
265cd27208SKumar Gala
27d2b194edSKumar Gala __FP_PACK_DS(frD, B);
28d2b194edSKumar Gala
29d2b194edSKumar Gala return FP_CUR_EXCEPTIONS;
305cd27208SKumar Gala }
31