Import 2.3.16pre1
[davej-history.git] / arch / sparc64 / math-emu / fdtoq.c
blob0607525d615918d90923a00f33078a8bd541e412
1 /* $Id: fdtoq.c,v 1.4 1999/05/28 13:43:56 jj Exp $
2 * arch/sparc64/math-emu/fdtoq.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 "double.h"
14 int FDTOQ(void *rd, void *rs2)
16 FP_DECL_EX;
17 FP_DECL_D(A); FP_DECL_Q(R);
19 FP_UNPACK_DP(A, rs2);
20 FP_CONV(Q,D,2,1,R,A);
21 FP_PACK_QP(rd, R);
22 FP_HANDLE_EXCEPTIONS;