Upload Tizen:Base source
[external/gmp.git] / mpn / alpha / umul.asm
1 dnl  mpn_umul_ppmm -- 1x1->2 limb multiplication
2
3 dnl  Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
4
5 dnl  This file is part of the GNU MP Library.
6
7 dnl  The GNU MP Library is free software; you can redistribute it and/or modify
8 dnl  it under the terms of the GNU Lesser General Public License as published
9 dnl  by the Free Software Foundation; either version 3 of the License, or (at
10 dnl  your option) any later version.
11
12 dnl  The GNU MP Library is distributed in the hope that it will be useful, but
13 dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15 dnl  License for more details.
16
17 dnl  You should have received a copy of the GNU Lesser General Public License
18 dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
19
20 include(`../config.m4')
21
22
23 C mp_limb_t mpn_umul_ppmm (mp_limb_t *lowptr, mp_limb_t m1, mp_limb_t m2);
24 C
25
26 ASM_START()
27 PROLOGUE(mpn_umul_ppmm)
28         mulq    r17, r18, r1
29         umulh   r17, r18, r0
30         stq     r1, 0(r16)
31         ret     r31, (r26), 1
32 EPILOGUE()
33 ASM_END()