15cd27208SKumar Gala #include <linux/types.h> 25cd27208SKumar Gala #include <linux/errno.h> 3*7c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 45cd27208SKumar Gala 5d2b194edSKumar Gala #include <asm/sfp-machine.h> 6d2b194edSKumar Gala #include <math-emu/soft-fp.h> 7d2b194edSKumar Gala #include <math-emu/double.h> 8d2b194edSKumar Gala #include <math-emu/single.h> 95cd27208SKumar Gala 105cd27208SKumar Gala int 115cd27208SKumar Gala frsp(void *frD, void *frB) 125cd27208SKumar Gala { 135cd27208SKumar Gala FP_DECL_D(B); 14d2b194edSKumar Gala FP_DECL_EX; 155cd27208SKumar Gala 165cd27208SKumar Gala #ifdef DEBUG 17e48b1b45SHarvey Harrison printk("%s: D %p, B %p\n", __func__, frD, frB); 185cd27208SKumar Gala #endif 195cd27208SKumar Gala 20d2b194edSKumar Gala FP_UNPACK_DP(B, frB); 215cd27208SKumar Gala 225cd27208SKumar Gala #ifdef DEBUG 235cd27208SKumar Gala printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c); 245cd27208SKumar Gala #endif 255cd27208SKumar Gala 26d2b194edSKumar Gala __FP_PACK_DS(frD, B); 27d2b194edSKumar Gala 28d2b194edSKumar Gala return FP_CUR_EXCEPTIONS; 295cd27208SKumar Gala } 30