[BACK]Return to addsub_n.asm CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / mpn / powerpc64

Diff for /OpenXM_contrib/gmp/mpn/powerpc64/Attic/addsub_n.asm between version 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2000/09/09 14:12:38 version 1.1.1.2, 2003/08/25 16:06:24
Line 1 
Line 1 
 # PowerPC-64 mpn_addsub_n -- Simultaneous add and sub.  # PowerPC-64 mpn_addsub_n -- Simultaneous add and sub.
   
 # Copyright (C) 1999, 2000 Free Software Foundation, Inc.  # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
   
 # This file is part of the GNU MP Library.  # This file is part of the GNU MP Library.
   
Line 26 
Line 26 
 # s2_ptr        r5  # s2_ptr        r5
 # size          r6  # size          r6
   
 include(`asm-syntax.m4')  include(`../config.m4')
   
 define(SAVE_BORROW_RESTORE_CARRY,  define(SAVE_BORROW_RESTORE_CARRY,
         `sldi $1,$1,63          `sldi $1,$1,63
Line 50  define(SAVE_CARRY_RESTORE_BORROW,
Line 50  define(SAVE_CARRY_RESTORE_BORROW,
   
 ASM_START()  ASM_START()
 PROLOGUE(mpn_addsub_n)  PROLOGUE(mpn_addsub_n)
         std     r14,-64(1)          std     r14,-64(r1)
         std     r15,-56(1)          std     r15,-56(r1)
         std     r16,-48(1)          std     r16,-48(r1)
         std     r17,-40(1)          std     r17,-40(r1)
         std     r18,-32(1)          std     r18,-32(r1)
         std     r19,-24(1)          std     r19,-24(r1)
   
         srdi    r7,r7,2          srdi    r7,r7,2
         mtctr   r7              # copy size into CTR          mtctr   r7              # copy size into CTR
Line 97  PROLOGUE(mpn_addsub_n)
Line 97  PROLOGUE(mpn_addsub_n)
         ldu     r17,32(r6)      # s2 L 4          ldu     r17,32(r6)      # s2 L 4
         bdnz    .Loop          bdnz    .Loop
   
         ld      r14,-64(1)          ld      r14,-64(r1)
         ld      r15,-56(1)          ld      r15,-56(r1)
         ld      r16,-48(1)          ld      r16,-48(r1)
         ld      r17,-40(1)          ld      r17,-40(r1)
         ld      r18,-32(1)          ld      r18,-32(r1)
         ld      r19,-24(1)          ld      r19,-24(r1)
         blr          blr
 EPILOGUE(mpn_addsub_n)  EPILOGUE(mpn_addsub_n)

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>