Import 2.3.4pre3
[davej-history.git] / arch / sparc64 / math-emu / fstod.c
blob3c7a974cab2f163f94ababb1558704f74ebec7a8
1 /* $Id: fstod.c,v 1.4 1999/05/28 13:44:51 jj Exp $
2 * arch/sparc64/math-emu/fstod.c
4 * Copyright (C) 1997, 1999 Jakub Jelinek (jj@ultra.linux.cz)
5 * Copyright (C) 1999 David S. Miller (davem@redhat.com)
7 */
9 #include "sfp-util.h"
10 #include "soft-fp.h"
11 #include "double.h"
12 #include "single.h"
14 int FSTOD(void *rd, void *rs2)
16 FP_DECL_EX;
17 FP_DECL_S(A); FP_DECL_D(R);
19 FP_UNPACK_SP(A, rs2);
20 FP_CONV(D,S,1,1,R,A);
21 FP_PACK_DP(rd, R);
22 FP_HANDLE_EXCEPTIONS;