1*404b540aSrobert /* Software floating-point emulation.
2*404b540aSrobert Return a * b
3*404b540aSrobert Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
4*404b540aSrobert This file is part of the GNU C Library.
5*404b540aSrobert Contributed by Richard Henderson (rth@cygnus.com) and
6*404b540aSrobert Jakub Jelinek (jj@ultra.linux.cz).
7*404b540aSrobert
8*404b540aSrobert The GNU C Library is free software; you can redistribute it and/or
9*404b540aSrobert modify it under the terms of the GNU Lesser General Public
10*404b540aSrobert License as published by the Free Software Foundation; either
11*404b540aSrobert version 2.1 of the License, or (at your option) any later version.
12*404b540aSrobert
13*404b540aSrobert In addition to the permissions in the GNU Lesser General Public
14*404b540aSrobert License, the Free Software Foundation gives you unlimited
15*404b540aSrobert permission to link the compiled version of this file into
16*404b540aSrobert combinations with other programs, and to distribute those
17*404b540aSrobert combinations without any restriction coming from the use of this
18*404b540aSrobert file. (The Lesser General Public License restrictions do apply in
19*404b540aSrobert other respects; for example, they cover modification of the file,
20*404b540aSrobert and distribution when not linked into a combine executable.)
21*404b540aSrobert
22*404b540aSrobert The GNU C Library is distributed in the hope that it will be useful,
23*404b540aSrobert but WITHOUT ANY WARRANTY; without even the implied warranty of
24*404b540aSrobert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25*404b540aSrobert Lesser General Public License for more details.
26*404b540aSrobert
27*404b540aSrobert You should have received a copy of the GNU Lesser General Public
28*404b540aSrobert License along with the GNU C Library; if not, write to the Free
29*404b540aSrobert Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
30*404b540aSrobert MA 02110-1301, USA. */
31*404b540aSrobert
32*404b540aSrobert #include "soft-fp.h"
33*404b540aSrobert #include "double.h"
34*404b540aSrobert
__muldf3(DFtype a,DFtype b)35*404b540aSrobert DFtype __muldf3(DFtype a, DFtype b)
36*404b540aSrobert {
37*404b540aSrobert FP_DECL_EX;
38*404b540aSrobert FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R);
39*404b540aSrobert DFtype r;
40*404b540aSrobert
41*404b540aSrobert FP_INIT_ROUNDMODE;
42*404b540aSrobert FP_UNPACK_D(A, a);
43*404b540aSrobert FP_UNPACK_D(B, b);
44*404b540aSrobert FP_MUL_D(R, A, B);
45*404b540aSrobert FP_PACK_D(r, R);
46*404b540aSrobert FP_HANDLE_EXCEPTIONS;
47*404b540aSrobert
48*404b540aSrobert return r;
49*404b540aSrobert }
50