Import 2.3.4pre3
[davej-history.git] / arch / sparc64 / math-emu / fstoq.c
blobd23e187c6c07a35bafd866278d2c8b3d3e08cfc5
1 /* $Id: fstoq.c,v 1.4 1999/05/28 13:44:58 jj Exp $
2 * arch/sparc64/math-emu/fstoq.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 "quad.h"
12 #include "single.h"
14 int FSTOQ(void *rd, void *rs2)
16 FP_DECL_EX;
17 FP_DECL_S(A); FP_DECL_Q(R);
19 FP_UNPACK_SP(A, rs2);
20 FP_CONV(Q,S,2,1,R,A);
21 FP_PACK_QP(rd, R);
22 FP_HANDLE_EXCEPTIONS;