1
/* mips3 sub_n -- Subtract two limb vectors of the same length > 0 and
2
* store difference in a third limb vector.
4
* Copyright (C) 1995, 1998, 1999, 2000,
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
27
* mpihelp_sub_n( mpi_ptr_t res_ptr, (r4)
28
* mpi_ptr_t s1_ptr, (r5)
29
* mpi_ptr_t s2_ptr, (r6)
30
* mpi_size_t size) (r7)
46
and $9,$7,4-1 # number of limbs in first loop
47
beq $9,$0,.L0 # if multiple of 4 limbs, skip first loop
52
.Loop0: daddiu $9,$9,-1
72
.Loop: daddiu $7,$7,-4
116
.Lend: daddu $11,$11,$2