Debian Codegraph @

msvc/gmp/mpn/x86i/umul.asm

raw
1
2 ; Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
3 ;
4 ; This file is part of the GNU MP Library.
5 ;
6 ; The GNU MP Library is free software; you can redistribute it and/or
7 ; modify it under the terms of the GNU Lesser General Public License as
8 ; published by the Free Software Foundation; either version 2.1 of the
9 ; License, or (at your option) any later version.
10 ;
11 ; The GNU MP Library is distributed in the hope that it will be useful,
12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ; Lesser General Public License for more details.
15 ;
16 ; You should have received a copy of the GNU Lesser General Public
17 ; License along with the GNU MP Library; see the file COPYING.LIB. If
18 ; not, write to the Free Software Foundation, Inc., 59 Temple Place -
19 ; Suite 330, Boston, MA 02111-1307, USA.
20 ;
21 ; Translation of AT&T syntax code by Brian Gladman
22
23 %include "x86i.inc"
24
25 %define PARAM_M2 esp+frame+12
26 %define PARAM_M1 esp+frame+8
27 %define PARAM_LOWPTR esp+frame+4
28 %assign frame 0
29
30 section .text
31
32 global ___gmpn_umul_ppmm
33 %ifdef DLL
34 export ___gmpn_umul_ppmm
35 %endif
36
37 align 8
38 ___gmpn_umul_ppmm:
39 mov ecx,[PARAM_LOWPTR]
40 mov eax,[PARAM_M1]
41 mul dword [PARAM_M2]
42 mov [ecx],eax
43 mov eax,edx
44 ret
45
46 end