* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / ppc / math-emu / frsp.c
blobe71e648750b288a8f8d4b6630e3cb4d9219e2750
1 /* $Id: frsp.c,v 1.1 1999/08/23 18:59:57 cort Exp $
2 */
4 #include <linux/types.h>
5 #include <linux/errno.h>
6 #include <asm/uaccess.h>
8 #include "soft-fp.h"
9 #include "double.h"
10 #include "single.h"
12 int
13 frsp(void *frD, void *frB)
15 FP_DECL_D(B);
17 #ifdef DEBUG
18 printk("%s: D %p, B %p\n", __FUNCTION__, frD, frB);
19 #endif
21 __FP_UNPACK_D(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 return __FP_PACK_DS(frD, B);