~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to msvc/gmp/mpn/x86i/copyi.asm

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2006-05-17 02:46:26 UTC
  • Revision ID: james.westby@ubuntu.com-20060517024626-lljr08ftv9g9vefl
Tags: upstream-0.9h-20060510
ImportĀ upstreamĀ versionĀ 0.9h-20060510

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
;  Copyright 1999, 2000, 2001, 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
        global  ___gmpn_copyi
 
26
 
 
27
%ifdef  DLL
 
28
        export  ___gmpn_copyi
 
29
%endif
 
30
 
 
31
%define PARAM_SIZE    esp+frame+12
 
32
%define PARAM_SRC     esp+frame+8
 
33
%define PARAM_DST     esp+frame+4
 
34
%assign       frame   0
 
35
 
 
36
        section .text
 
37
    align   32
 
38
 
 
39
; eax  saved esi 
 
40
; ebx 
 
41
; ecx  counter 
 
42
; edx  saved edi 
 
43
; esi  src 
 
44
; edi  dst 
 
45
; ebp 
 
46
 
 
47
___gmpn_copyi: 
 
48
    mov     ecx,[PARAM_SIZE]
 
49
    mov     eax,esi
 
50
    mov     esi,[PARAM_SRC]
 
51
    mov     edx,edi
 
52
    mov     edi,[PARAM_DST]
 
53
    cld                                         ; better safe than sorry,see mpn/x86/README 
 
54
    rep movsd
 
55
    mov     esi,eax
 
56
    mov     edi,edx
 
57
    ret
 
58
 
 
59
        end