18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci#include <linux/types.h> 38c2ecf20Sopenharmony_ci#include <linux/errno.h> 48c2ecf20Sopenharmony_ci#include <linux/uaccess.h> 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <asm/sfp-machine.h> 78c2ecf20Sopenharmony_ci#include <math-emu/soft-fp.h> 88c2ecf20Sopenharmony_ci#include <math-emu/double.h> 98c2ecf20Sopenharmony_ci#include <math-emu/single.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciint 128c2ecf20Sopenharmony_cifrsp(void *frD, void *frB) 138c2ecf20Sopenharmony_ci{ 148c2ecf20Sopenharmony_ci FP_DECL_D(B); 158c2ecf20Sopenharmony_ci FP_DECL_EX; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifdef DEBUG 188c2ecf20Sopenharmony_ci printk("%s: D %p, B %p\n", __func__, frD, frB); 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci FP_UNPACK_DP(B, frB); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#ifdef DEBUG 248c2ecf20Sopenharmony_ci printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c); 258c2ecf20Sopenharmony_ci#endif 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci __FP_PACK_DS(frD, B); 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci return FP_CUR_EXCEPTIONS; 308c2ecf20Sopenharmony_ci} 31