diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-06-17 13:25:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-06-17 13:25:08 +0000 |
commit | 59223edaa18759982db0a8aced0e77457d10c68e (patch) | |
tree | 89354903b01fa0a447bffeefe00df3044495db2e /arch/sparc/math-emu/fdtoq.c | |
parent | db7d4daea91e105e3859cf461d7e53b9b77454b2 (diff) |
Merge with Linux 2.3.6. Sorry, this isn't tested on silicon, I don't
have a MIPS box at hand.
Diffstat (limited to 'arch/sparc/math-emu/fdtoq.c')
-rw-r--r-- | arch/sparc/math-emu/fdtoq.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/sparc/math-emu/fdtoq.c b/arch/sparc/math-emu/fdtoq.c index 7b7746821..701b1ff3f 100644 --- a/arch/sparc/math-emu/fdtoq.c +++ b/arch/sparc/math-emu/fdtoq.c @@ -1,12 +1,23 @@ +/* $Id: fdtoq.c,v 1.9 1999/05/28 13:42:01 jj Exp $ + * arch/sparc/math-emu/fdtoq.c + * + * Copyright (C) 1997, 1999 Jakub Jelinek (jj@ultra.linux.cz) + * Copyright (C) 1998 Peter Maydell (pmaydell@chiark.greenend.org.uk) + * + */ + +#include "sfp-util.h" #include "soft-fp.h" #include "quad.h" #include "double.h" int FDTOQ(void *rd, void *rs2) { + FP_DECL_EX; FP_DECL_D(A); FP_DECL_Q(R); - __FP_UNPACK_D(A, rs2); + FP_UNPACK_DP(A, rs2); FP_CONV(Q,D,4,2,R,A); - return __FP_PACK_Q(rd, R); + FP_PACK_QP(rd, R); + FP_HANDLE_EXCEPTIONS; } |