sysdeps/mips/add_n.S

This commit is contained in:
Andreas Jaeger 2000-04-15 03:54:15 +00:00
parent 127035bb55
commit b5e0b658d8
6 changed files with 24 additions and 18 deletions

View File

@ -1,7 +1,7 @@
/* MIPS __mpn_addmul_1 -- Multiply a limb vector with a single limb and /* MIPS __mpn_addmul_1 -- Multiply a limb vector with a single limb and
add the product to a second limb vector. add the product to a second limb vector.
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -28,12 +28,12 @@ MA 02111-1307, USA. */
size $6 size $6
s2_limb $7 s2_limb $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_addmul_1) ENTRY (__mpn_addmul_1)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -96,3 +96,4 @@ $LC0: lw $10,0($4)
sw $3,0($4) sw $3,0($4)
j $31 j $31
addu $2,$9,$2 /* add high product limb and carry from addition */ addu $2,$9,$2 /* add high product limb and carry from addition */
END (__mpn_addmul_1)

View File

@ -1,6 +1,6 @@
/* MIPS2 __mpn_lshift -- /* MIPS2 __mpn_lshift --
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -27,12 +27,12 @@ MA 02111-1307, USA. */
size $6 size $6
cnt $7 cnt $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_lshift) ENTRY (__mpn_lshift)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -95,3 +95,4 @@ ENTRY (__mpn_lshift)
.Lend: sll $8,$10,$7 .Lend: sll $8,$10,$7
j $31 j $31
sw $8,-4($4) sw $8,-4($4)
END (__mpn_lshift)

View File

@ -1,7 +1,7 @@
/* MIPS __mpn_mul_1 -- Multiply a limb vector with a single limb and /* MIPS __mpn_mul_1 -- Multiply a limb vector with a single limb and
store the product in a second limb vector. store the product in a second limb vector.
Copyright (C) 1995, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -28,12 +28,12 @@ MA 02111-1307, USA. */
size $6 size $6
s2_limb $7 s2_limb $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_mul_1) ENTRY (__mpn_mul_1)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -84,3 +84,4 @@ $LC0: mflo $10
sw $10,0($4) sw $10,0($4)
j $31 j $31
addu $2,$9,$2 /* add high product limb and carry from addition */ addu $2,$9,$2 /* add high product limb and carry from addition */
END (__mpn_mul_1)

View File

@ -1,6 +1,6 @@
/* MIPS2 __mpn_rshift -- /* MIPS2 __mpn_rshift --
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -27,12 +27,12 @@ MA 02111-1307, USA. */
size $6 size $6
cnt $7 cnt $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_rshift) ENTRY (__mpn_rshift)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -92,3 +92,4 @@ ENTRY (__mpn_rshift)
.Lend: srl $8,$10,$7 .Lend: srl $8,$10,$7
j $31 j $31
sw $8,0($4) sw $8,0($4)
END (__mpn_rshift)

View File

@ -1,7 +1,7 @@
/* MIPS2 __mpn_sub_n -- Subtract two limb vectors of the same length > 0 and /* MIPS2 __mpn_sub_n -- Subtract two limb vectors of the same length > 0 and
store difference in a third limb vector. store difference in a third limb vector.
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -28,12 +28,12 @@ MA 02111-1307, USA. */
s2_ptr $6 s2_ptr $6
size $7 size $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_sub_n) ENTRY (__mpn_sub_n)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -119,3 +119,4 @@ ENTRY (__mpn_sub_n)
sw $11,0($4) sw $11,0($4)
j $31 j $31
or $2,$2,$8 or $2,$2,$8
END (__mpn_sub_n)

View File

@ -1,7 +1,7 @@
/* MIPS __mpn_submul_1 -- Multiply a limb vector with a single limb and /* MIPS __mpn_submul_1 -- Multiply a limb vector with a single limb and
subtract the product from a second limb vector. subtract the product from a second limb vector.
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library. This file is part of the GNU MP Library.
@ -28,12 +28,12 @@ MA 02111-1307, USA. */
size $6 size $6
s2_limb $7 s2_limb $7
*/ */
#ifdef PIC #ifdef __PIC__
.option pic2 .option pic2
#endif #endif
ENTRY (__mpn_submul_1) ENTRY (__mpn_submul_1)
.set noreorder .set noreorder
#ifdef PIC #ifdef __PIC__
.cpload t9 .cpload t9
#endif #endif
.set nomacro .set nomacro
@ -96,3 +96,4 @@ $LC0: lw $10,0($4)
sw $3,0($4) sw $3,0($4)
j $31 j $31
addu $2,$9,$2 /* add high product limb and carry from addition */ addu $2,$9,$2 /* add high product limb and carry from addition */
END (__mpn_submul_1)