diff options
Diffstat (limited to 'arch/powerpc/math-emu/fctiwz.c')
-rw-r--r-- | arch/powerpc/math-emu/fctiwz.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/math-emu/fctiwz.c b/arch/powerpc/math-emu/fctiwz.c index 1514d59e146e..71e782fd4fe3 100644 --- a/arch/powerpc/math-emu/fctiwz.c +++ b/arch/powerpc/math-emu/fctiwz.c | |||
@@ -2,13 +2,15 @@ | |||
2 | #include <linux/errno.h> | 2 | #include <linux/errno.h> |
3 | #include <asm/uaccess.h> | 3 | #include <asm/uaccess.h> |
4 | 4 | ||
5 | #include "soft-fp.h" | 5 | #include <asm/sfp-machine.h> |
6 | #include "double.h" | 6 | #include <math-emu/soft-fp.h> |
7 | #include <math-emu/double.h> | ||
7 | 8 | ||
8 | int | 9 | int |
9 | fctiwz(u32 *frD, void *frB) | 10 | fctiwz(u32 *frD, void *frB) |
10 | { | 11 | { |
11 | FP_DECL_D(B); | 12 | FP_DECL_D(B); |
13 | FP_DECL_EX; | ||
12 | u32 fpscr; | 14 | u32 fpscr; |
13 | unsigned int r; | 15 | unsigned int r; |
14 | 16 | ||
@@ -16,7 +18,7 @@ fctiwz(u32 *frD, void *frB) | |||
16 | __FPU_FPSCR &= ~(3); | 18 | __FPU_FPSCR &= ~(3); |
17 | __FPU_FPSCR |= FP_RND_ZERO; | 19 | __FPU_FPSCR |= FP_RND_ZERO; |
18 | 20 | ||
19 | __FP_UNPACK_D(B, frB); | 21 | FP_UNPACK_DP(B, frB); |
20 | FP_TO_INT_D(r, B, 32, 1); | 22 | FP_TO_INT_D(r, B, 32, 1); |
21 | frD[1] = r; | 23 | frD[1] = r; |
22 | 24 | ||