Debian Codegraph @

msvc/gmp/mpn/x86i/udiv.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_DIVISOR esp+frame+16
26 %define PARAM_LOW esp+frame+12
27 %define PARAM_HIGH esp+frame+8
28 %define PARAM_REMPTR esp+frame+4
29 %assign frame 0
30
31 section .text
32
33 global ___gmpn_udiv_qrnnd
34 %ifdef DLL
35 export ___gmpn_udiv_qrnnd
36 %endif
37
38 align 8
39 ___gmpn_udiv_qrnnd:
40 mov eax,[PARAM_LOW]
41 mov edx,[PARAM_HIGH]
42 div dword [PARAM_DIVISOR]
43 mov ecx,[PARAM_REMPTR]
44 mov [ecx],edx
45 ret
46
47 end