aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/supersparc
diff options
context:
space:
mode:
authorRepo Admin <[email protected]>2002-10-19 07:55:27 +0000
committerRepo Admin <[email protected]>2002-10-19 07:55:27 +0000
commit82a17c9fb3d64ccdd474c3bedf564368f77e84a4 (patch)
tree0c01ee8cea5f6f77e830955c6b97024752740a2b /mpi/supersparc
parentBumped version number for cvs version (diff)
downloadgnupg-82a17c9fb3d64ccdd474c3bedf564368f77e84a4.tar.gz
gnupg-82a17c9fb3d64ccdd474c3bedf564368f77e84a4.zip
This commit was manufactured by cvs2svn to create branch
'GNUPG-1-9-BRANCH'.
Diffstat (limited to 'mpi/supersparc')
-rw-r--r--mpi/supersparc/distfiles3
-rw-r--r--mpi/supersparc/udiv.S120
2 files changed, 0 insertions, 123 deletions
diff --git a/mpi/supersparc/distfiles b/mpi/supersparc/distfiles
deleted file mode 100644
index 5506c419b..000000000
--- a/mpi/supersparc/distfiles
+++ /dev/null
@@ -1,3 +0,0 @@
-
-udiv.S
-
diff --git a/mpi/supersparc/udiv.S b/mpi/supersparc/udiv.S
deleted file mode 100644
index 31b7387c7..000000000
--- a/mpi/supersparc/udiv.S
+++ /dev/null
@@ -1,120 +0,0 @@
-/* SuperSPARC __udiv_qrnnd division support, used from longlong.h.
- * This is for SuperSPARC only, to compensate for its
- * semi-functional udiv instruction.
- *
- * Copyright (C) 1993, 1994, 1996, 1998,
- * 2001 Free Software Foundation, Inc.
- *
- * This file is part of GnuPG.
- *
- * GnuPG is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GnuPG is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- *
- * Note: This code is heavily based on the GNU MP Library.
- * Actually it's the same code with only minor changes in the
- * way the data is stored; this is to support the abstraction
- * of an optional secure memory allocation which may be used
- * to avoid revealing of sensitive data due to paging etc.
- * The GNU MP Library itself is published under the LGPL;
- * however I decided to publish this code under the plain GPL.
- */
-
-
-
-! INPUT PARAMETERS
-! rem_ptr i0
-! n1 i1
-! n0 i2
-! d i3
-
-#include "sysdep.h"
-#undef ret /* Kludge for glibc */
-
- .text
- .align 8
-LC0: .double 0r4294967296
-LC1: .double 0r2147483648
-
- .align 4
- .global C_SYMBOL_NAME(__udiv_qrnnd)
-C_SYMBOL_NAME(__udiv_qrnnd):
- !#PROLOGUE# 0
- save %sp,-104,%sp
- !#PROLOGUE# 1
- st %i1,[%fp-8]
- ld [%fp-8],%f10
- sethi %hi(LC0),%o7
- fitod %f10,%f4
- ldd [%o7+%lo(LC0)],%f8
- cmp %i1,0
- bge L248
- mov %i0,%i5
- faddd %f4,%f8,%f4
-L248:
- st %i2,[%fp-8]
- ld [%fp-8],%f10
- fmuld %f4,%f8,%f6
- cmp %i2,0
- bge L249
- fitod %f10,%f2
- faddd %f2,%f8,%f2
-L249:
- st %i3,[%fp-8]
- faddd %f6,%f2,%f2
- ld [%fp-8],%f10
- cmp %i3,0
- bge L250
- fitod %f10,%f4
- faddd %f4,%f8,%f4
-L250:
- fdivd %f2,%f4,%f2
- sethi %hi(LC1),%o7
- ldd [%o7+%lo(LC1)],%f4
- fcmped %f2,%f4
- nop
- fbge,a L251
- fsubd %f2,%f4,%f2
- fdtoi %f2,%f2
- st %f2,[%fp-8]
- b L252
- ld [%fp-8],%i4
-L251:
- fdtoi %f2,%f2
- st %f2,[%fp-8]
- ld [%fp-8],%i4
- sethi %hi(-2147483648),%g2
- xor %i4,%g2,%i4
-L252:
- umul %i3,%i4,%g3
- rd %y,%i0
- subcc %i2,%g3,%o7
- subxcc %i1,%i0,%g0
- be L253
- cmp %o7,%i3
-
- add %i4,-1,%i0
- add %o7,%i3,%o7
- st %o7,[%i5]
- ret
- restore
-L253:
- blu L246
- mov %i4,%i0
- add %i4,1,%i0
- sub %o7,%i3,%o7
-L246:
- st %o7,[%i5]
- ret
- restore
-