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, 1994, 1998,
5
* 2001 Free Software Foundation, Inc.
7
* This file is part of GnuPG.
9
* GnuPG is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* GnuPG is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
23
* Note: This code is heavily based on the GNU MP Library.
24
* Actually it's the same code with only minor changes in the
25
* way the data is stored; this is to support the abstraction
26
* of an optional secure memory allocation which may be used
27
* to avoid revealing of sensitive data due to paging etc.
28
* The GNU MP Library itself is published under the LGPL;
29
* however I decided to publish this code under the plain GPL.
48
.callinfo frame=64,no_calls
52
stws %r25,-16(0,%r30) ; n_hi
53
stws %r24,-12(0,%r30) ; n_lo
54
ldil L'L$0000,%r19 ; '
55
ldo R'L$0000(%r19),%r19 ; '
56
fldds -16(0,%r30),%fr5
59
fcnvxf,dbl,dbl %fr5,%fr5
61
fadd,dbl %fr4,%fr5,%fr5
64
fldws -12(0,%r30),%fr6R
65
fcnvxf,dbl,dbl %fr6,%fr4
67
fdiv,dbl %fr5,%fr4,%fr5
69
fcnvfx,dbl,dbl %fr5,%fr4
71
xmpyu %fr4R,%fr6R,%fr6
73
fstds %fr6,-16(0,%r30)