1 dnl mc68020 mpn_mul_1 -- mpn by limb multiply
3 dnl Copyright 1992, 1994, 1996, 1999, 2000, 2001, 2002 Free Software
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
9 dnl modify it under the terms of the GNU Lesser General Public License as
10 dnl published by the Free Software Foundation; either version 3 of the
11 dnl License, or (at your option) any later version.
13 dnl The GNU MP Library is distributed in the hope that it will be useful,
14 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 dnl Lesser General Public 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. If not, see http://www.gnu.org/licenses/.
21 include(`../config.m4')
41 C Save used registers on the stack.
48 C Copy the arguments to registers. Better use movem?
49 movel M(sp,16), res_ptr
50 movel M(sp,20), s1_ptr
51 movel M(sp,24), s1_size
52 movel M(sp,28), s2_limb
59 subl d0, d0 C (d0,cy) <= (0,0)
65 movel d3, M(res_ptr,+)
66 L(L1): movel M(s1_ptr,+), d3
69 movel d3, M(res_ptr,+)
74 subl #0x10000, s1_size
77 C Restore used registers from stack frame.