1 dnl SPARC v7 __udiv_qrnnd division support, used from longlong.h.
2 dnl This is for v7 CPUs with a floating-point unit.
4 dnl Copyright (C) 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
6 dnl This file is part of the GNU MP Library.
8 dnl The GNU MP Library is free software; you can redistribute it and/or modify
9 dnl it under the terms of the GNU Lesser General Public License as published
10 dnl by the Free Software Foundation; either version 2.1 of the License, or (at
11 dnl your option) any later version.
13 dnl The GNU MP Library is distributed in the hope that it will be useful, but
14 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 dnl License for more details.
18 dnl You should have received a copy of the GNU Lesser General Public License
19 dnl along with the GNU MP Library; see the file COPYING.LIB. If not, write to
20 dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21 dnl MA 02111-1307, USA.
24 include(`../config.m4')
42 L(C0): .double 0r4294967296
43 L(C1): .double 0r2147483648
45 PROLOGUE(mpn_udiv_qrnnd)
51 `L(pc): call L(getpc) C put address of this insn in %o7
52 ldd [%o7+L(C0)-L(pc)],%f8',
53 ` sethi %hi(L(C0)),%o7
54 ldd [%o7+%lo(L(C0))],%f8')
81 ` ldd [%o7+L(C1)-L(pc)],%f4',
82 ` sethi %hi(L(C1)),%o7
83 ldd [%o7+%lo(L(C1))],%f4')
97 sethi %hi(-2147483648),%g2
158 EPILOGUE(mpn_udiv_qrnnd)