1 ;! HP-PA __udiv_qrnnd division support, used from longlong.h.
2 ;! This version runs fast on PA 7000 and later.
4 ;! Copyright (C) 1993-2015 Free Software Foundation, Inc.
6 ;! This file is part of the GNU MP Library.
8 ;! The GNU MP Library is free software; you can redistribute it and/or modify
9 ;! it under the terms of the GNU Lesser General Public License as published by
10 ;! the Free Software Foundation; either version 2.1 of the License, or (at your
11 ;! option) any later version.
13 ;! The GNU MP Library is distributed in the hope that it will be useful, but
14 ;! WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 ;! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 ;! License for more details.
18 ;! You should have received a copy of the GNU Lesser General Public License
19 ;! along with the GNU MP Library. If not, see
20 ;! <http://www.gnu.org/licenses/>.
36 .callinfo frame=64,no_calls
40 stws %r25,-16(%r30) ;! n_hi
41 stws %r24,-12(%r30) ;! n_lo
43 ldo L$0000-L$0(%r1),%r1
48 fcnvxf,dbl,dbl %fr5,%fr5
50 fadd,dbl %fr4,%fr5,%fr5
54 fcnvxf,dbl,dbl %fr6,%fr4
56 fdiv,dbl %fr5,%fr4,%fr5
58 fcnvfx,dbl,dbl %fr5,%fr4
60 xmpyu %fr4R,%fr6R,%fr6