1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-08 12:44:23 +01:00

* i386/syntax.h (ALIGN): Removed parens from definition

* i386/mpih-add1.S, i386/mpih-sub1.S, i386/mpih-rshift.S,
i386/mpih-lshift.S: Minor syntax changes suggested by Mark Pettit
after comparing the files with those for GMP 4.
This commit is contained in:
Werner Koch 2002-04-18 18:40:33 +00:00
parent 40bbe7f621
commit 72125f8fe7
6 changed files with 22 additions and 15 deletions

View File

@ -1,3 +1,10 @@
2002-04-18 Werner Koch <wk@gnupg.org>
* i386/syntax.h (ALIGN): Removed parens from definition
* i386/mpih-add1.S, i386/mpih-sub1.S, i386/mpih-rshift.S,
i386/mpih-lshift.S: Minor syntax changes suggested by Mark Pettit
after comparing the files with those for GMP 4.
2001-11-08 Werner Koch <wk@gnupg.org> 2001-11-08 Werner Koch <wk@gnupg.org>
* config.links (mpi_sflags): Add extra rule for sparc64-sun-solaris2. * config.links (mpi_sflags): Add extra rule for sparc64-sun-solaris2.

View File

@ -2,7 +2,7 @@
* sum in a third limb vector. * sum in a third limb vector.
* *
* Copyright (C) 1992, 1994, 1995, 1998, * Copyright (C) 1992, 1994, 1995, 1998,
* 2001 Free Software Foundation, Inc. * 2001, 2002 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *
@ -75,7 +75,7 @@ L0: leal (%eax,%eax,8),%eax
addl $4,%esp addl $4,%esp
#else #else
/* Calculate start address in loop for non-PIC. */ /* Calculate start address in loop for non-PIC. */
leal (Loop - 3)(%eax,%eax,8),%eax leal Loop-3(%eax,%eax,8),%eax
#endif #endif
jmp *%eax /* jump into loop */ jmp *%eax /* jump into loop */
ALIGN (3) ALIGN (3)

View File

@ -57,21 +57,21 @@ C_SYMBOL_NAME(mpihelp_lshift:)
movl (%esi,%edx,4),%ebx /* read most significant limb */ movl (%esi,%edx,4),%ebx /* read most significant limb */
xorl %eax,%eax xorl %eax,%eax
shldl %cl,%ebx,%eax /* compute carry limb */ shldl %ebx,%eax /* compute carry limb */
decl %edx decl %edx
jz Lend jz Lend
pushl %eax /* push carry limb onto stack */ pushl %eax /* push carry limb onto stack */
testb $1,%edx testb $1,%dl
jnz L1 /* enter loop in the middle */ jnz L1 /* enter loop in the middle */
movl %ebx,%eax movl %ebx,%eax
ALIGN (3) ALIGN (3)
Loop: movl (%esi,%edx,4),%ebx /* load next lower limb */ Loop: movl (%esi,%edx,4),%ebx /* load next lower limb */
shldl %cl,%ebx,%eax /* compute result limb */ shldl %ebx,%eax /* compute result limb */
movl %eax,(%edi,%edx,4) /* store it */ movl %eax,(%edi,%edx,4) /* store it */
decl %edx decl %edx
L1: movl (%esi,%edx,4),%eax L1: movl (%esi,%edx,4),%eax
shldl %cl,%eax,%ebx shldl %eax,%ebx
movl %ebx,(%edi,%edx,4) movl %ebx,(%edi,%edx,4)
decl %edx decl %edx
jnz Loop jnz Loop

View File

@ -1,7 +1,7 @@
/* i80386 rshift /* i80386 rshift
* *
* Copyright (C) 1992, 1994, 1998, * Copyright (C) 1992, 1994, 1998,
* 2001 Free Software Foundation, Inc. * 2001, 2002 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *
@ -60,21 +60,21 @@ C_SYMBOL_NAME(mpihelp_rshift:)
movl (%esi,%edx,4),%ebx /* read least significant limb */ movl (%esi,%edx,4),%ebx /* read least significant limb */
xorl %eax,%eax xorl %eax,%eax
shrdl %cl,%ebx,%eax /* compute carry limb */ shrdl %ebx,%eax /* compute carry limb */
incl %edx incl %edx
jz Lend2 jz Lend2
pushl %eax /* push carry limb onto stack */ pushl %eax /* push carry limb onto stack */
testb $1,%edx testb $1,%dl
jnz L2 /* enter loop in the middle */ jnz L2 /* enter loop in the middle */
movl %ebx,%eax movl %ebx,%eax
ALIGN (3) ALIGN (3)
Loop2: movl (%esi,%edx,4),%ebx /* load next higher limb */ Loop2: movl (%esi,%edx,4),%ebx /* load next higher limb */
shrdl %cl,%ebx,%eax /* compute result limb */ shrdl %ebx,%eax /* compute result limb */
movl %eax,(%edi,%edx,4) /* store it */ movl %eax,(%edi,%edx,4) /* store it */
incl %edx incl %edx
L2: movl (%esi,%edx,4),%eax L2: movl (%esi,%edx,4),%eax
shrdl %cl,%eax,%ebx shrdl %eax,%ebx
movl %ebx,(%edi,%edx,4) movl %ebx,(%edi,%edx,4)
incl %edx incl %edx
jnz Loop2 jnz Loop2

View File

@ -2,7 +2,7 @@
* sum in a third limb vector. * sum in a third limb vector.
* *
* Copyright (C) 1992, 1994, 1995, 1998, * Copyright (C) 1992, 1994, 1995, 1998,
* 2001 Free Software Foundation, Inc. * 2001, 2002 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *
@ -76,7 +76,7 @@ L0: leal (%eax,%eax,8),%eax
addl $4,%esp addl $4,%esp
#else #else
/* Calculate start address in loop for non-PIC. */ /* Calculate start address in loop for non-PIC. */
leal (Loop - 3)(%eax,%eax,8),%eax leal Loop-3(%eax,%eax,8),%eax
#endif #endif
jmp *%eax /* jump into loop */ jmp *%eax /* jump into loop */
ALIGN (3) ALIGN (3)

View File

@ -45,7 +45,7 @@
#define ALIGN(log) .align log #define ALIGN(log) .align log
#endif #endif
#if defined (ELF_SYNTAX) #if defined (ELF_SYNTAX)
#define ALIGN(log) .align 1<<(log) #define ALIGN(log) .align 1<<log
#endif #endif
#define GLOBL .globl #define GLOBL .globl
#endif #endif