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

« back to all changes in this revision

Viewing changes to src/gmp/mpn/x86/aors_n.asm

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
dnl  Copyright 1992, 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
4
4
dnl  Foundation, Inc.
5
 
dnl 
 
5
dnl
6
6
dnl  This file is part of the GNU MP Library.
7
 
dnl 
 
7
dnl
8
8
dnl  The GNU MP Library is free software; you can redistribute it and/or
9
9
dnl  modify it under the terms of the GNU Lesser General Public License as
10
10
dnl  published by the Free Software Foundation; either version 2.1 of the
11
11
dnl  License, or (at your option) any later version.
12
 
dnl 
 
12
dnl
13
13
dnl  The GNU MP Library is distributed in the hope that it will be useful,
14
14
dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
dnl  Lesser General Public License for more details.
17
 
dnl 
 
17
dnl
18
18
dnl  You should have received a copy of the GNU Lesser General Public
19
19
dnl  License along with the GNU MP Library; see the file COPYING.LIB.  If
20
 
dnl  not, write to the Free Software Foundation, Inc., 59 Temple Place -
21
 
dnl  Suite 330, Boston, MA 02111-1307, USA.
 
20
dnl  not, write to the Free Software Foundation, Inc., 51 Franklin Street,
 
21
dnl  Fifth Floor, Boston, MA 02110-1301, USA.
22
22
 
23
23
include(`../config.m4')
24
24
 
25
25
 
26
26
C     cycles/limb
27
27
C P5:   3.375
28
 
C P6:   3.7
 
28
C P6:   3.125
29
29
C K6:   3.5
30
30
C K7:   2.25
31
31
C P4:   8.75
94
94
        addl    $4,%esp
95
95
',`
96
96
        C Calculate start address in loop for non-PIC.
97
 
        leal    L(oop)-3(%eax,%eax,8),%eax
 
97
        leal    L(oop)-3(%eax,%eax,8),%eax
98
98
')
99
99
 
100
100
        C These lines initialize carry from the 5th parameter.  Should be
109
109
EPILOGUE()
110
110
 
111
111
 
112
 
        ALIGN(8)
 
112
        ALIGN(16)
113
113
PROLOGUE(M4_function_n)
114
114
deflit(`FRAME',0)
115
115
 
143
143
        addl    $4,%esp
144
144
',`
145
145
        C Calculate start address in loop for non-PIC.
146
 
        leal    L(oop)-3(%eax,%eax,8),%eax
 
146
        leal    L(oop)-3(%eax,%eax,8),%eax
147
147
')
148
148
        jmp     *%eax                   C jump into loop
149
149
 
153
153
        shrl    $1,%ebp                 C shift bit 0 into carry
154
154
        popl    %ebp            FRAME_popl()
155
155
 
156
 
        ALIGN(8)
 
156
        ALIGN(16)
157
157
L(oop): movl    (%esi),%eax
158
158
        M4_inst (%edx),%eax
159
159
        movl    %eax,(%edi)