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/fdtos.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/fdtos.c')
-rw-r--r-- | arch/sparc/math-emu/fdtos.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/sparc/math-emu/fdtos.c b/arch/sparc/math-emu/fdtos.c index 612434c40..63951befa 100644 --- a/arch/sparc/math-emu/fdtos.c +++ b/arch/sparc/math-emu/fdtos.c @@ -1,12 +1,23 @@ +/* $Id: fdtos.c,v 1.9 1999/05/28 13:42:03 jj Exp $ + * arch/sparc/math-emu/fdtos.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 "double.h" #include "single.h" int FDTOS(void *rd, void *rs2) { + FP_DECL_EX; FP_DECL_D(A); FP_DECL_S(R); - __FP_UNPACK_D(A, rs2); + FP_UNPACK_DP(A, rs2); FP_CONV(S,D,1,2,R,A); - return __FP_PACK_S(rd, R); + FP_PACK_SP(rd, R); + FP_HANDLE_EXCEPTIONS; } |