fctiw.c (96916090f488986a4ebb8e9ffa6a3b50881d5ccd) fctiw.c (d2b194ed820880eb19c43b9c10d9f5f30026ee54)
1#include <linux/types.h>
2#include <linux/errno.h>
3#include <asm/uaccess.h>
4
1#include <linux/types.h>
2#include <linux/errno.h>
3#include <asm/uaccess.h>
4
5#include "soft-fp.h"
6#include "double.h"
5#include <asm/sfp-machine.h>
6#include <math-emu/soft-fp.h>
7#include <math-emu/double.h>
7
8int
9fctiw(u32 *frD, void *frB)
10{
11 FP_DECL_D(B);
8
9int
10fctiw(u32 *frD, void *frB)
11{
12 FP_DECL_D(B);
13 FP_DECL_EX;
12 unsigned int r;
13
14 unsigned int r;
15
14 __FP_UNPACK_D(B, frB);
16 FP_UNPACK_DP(B, frB);
15 FP_TO_INT_D(r, B, 32, 1);
16 frD[1] = r;
17
18#ifdef DEBUG
19 printk("%s: D %p, B %p: ", __func__, frD, frB);
20 dump_double(frD);
21 printk("\n");
22#endif
23
24 return 0;
25}
17 FP_TO_INT_D(r, B, 32, 1);
18 frD[1] = r;
19
20#ifdef DEBUG
21 printk("%s: D %p, B %p: ", __func__, frD, frB);
22 dump_double(frD);
23 printk("\n");
24#endif
25
26 return 0;
27}