Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19291
Modified Files:
udiv.S urem.S
Log Message:
- Because the register save masks are 16bit values, I'd prefer to write
them with four hex digits.
- Use defined macros for DIVISOR and DIVIDEND.
Index: urem.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/urem.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- urem.S 26 Sep 2005 19:15:18 -0000 1.2
+++ urem.S 26 Sep 2005 20:42:41 -0000 1.3
@@ -49,10 +49,10 @@
#define DIVISOR 8(%ap)
ENTRY(__urem)
- .word 0x04 # save R2
- movl 8(%ap),%r2
+ .word 0x0004 # save R2
+ movl DIVISOR,%r2
jlss Leasy # big divisor: settle by comparison
- movl 4(%ap),%r0
+ movl DIVIDEND,%r0
jlss Lhard # big dividend: need extended division
divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
mull2 %r2,%r1
Index: udiv.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/udiv.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- udiv.S 26 Sep 2005 19:15:17 -0000 1.2
+++ udiv.S 26 Sep 2005 20:42:41 -0000 1.3
@@ -50,7 +50,7 @@
#define DIVISOR 8(%ap)
ENTRY(__udiv)
- .word 0x04 # save R2
+ .word 0x0004 # save R2
movl DIVISOR,%r2
jlss Leasy # big divisor: settle by comparison
movl DIVIDEND,%r0
|