1
/* SuperSPARC __udiv_qrnnd division support, used from longlong.h.
2
* This is for SuperSPARC only, to compensate for its
3
* semi-functional udiv instruction.
5
* Copyright (C) 1993, 1994, 1996, 1998,
6
* 2001 Free Software Foundation, Inc.
8
* This file is part of GnuPG.
10
* GnuPG is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* GnuPG is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24
* Note: This code is heavily based on the GNU MP Library.
25
* Actually it's the same code with only minor changes in the
26
* way the data is stored; this is to support the abstraction
27
* of an optional secure memory allocation which may be used
28
* to avoid revealing of sensitive data due to paging etc.
29
* The GNU MP Library itself is published under the LGPL;
30
* however I decided to publish this code under the plain GPL.
42
#undef ret /* Kludge for glibc */
46
LC0: .double 0r4294967296
47
LC1: .double 0r2147483648
50
.global C_SYMBOL_NAME(__udiv_qrnnd)
51
C_SYMBOL_NAME(__udiv_qrnnd):
59
ldd [%o7+%lo(LC0)],%f8
83
ldd [%o7+%lo(LC1)],%f4
96
sethi %hi(-2147483648),%g2