Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/arm/gen Optimize.
details: https://anonhg.NetBSD.org/src/rev/a45fc3f47ba7
branches: trunk
changeset: 782942:a45fc3f47ba7
user: matt <matt%NetBSD.org@localhost>
date: Wed Nov 28 01:35:05 2012 +0000
description:
Optimize.
diffstat:
common/lib/libc/arch/arm/gen/modsi3.S | 11 +++++------
common/lib/libc/arch/arm/gen/umodsi3.S | 9 ++++-----
2 files changed, 9 insertions(+), 11 deletions(-)
diffs (46 lines):
diff -r 69ed2138a0df -r a45fc3f47ba7 common/lib/libc/arch/arm/gen/modsi3.S
--- a/common/lib/libc/arch/arm/gen/modsi3.S Tue Nov 27 23:57:07 2012 +0000
+++ b/common/lib/libc/arch/arm/gen/modsi3.S Wed Nov 28 01:35:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: modsi3.S,v 1.1 2012/10/10 02:16:54 christos Exp $ */
+/* $NetBSD: modsi3.S,v 1.2 2012/11/28 01:35:05 matt Exp $ */
/*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@@ -22,10 +22,9 @@
*/
ENTRY(__modsi3)
- stmfd sp!, {lr}
- sub sp, sp, #4 /* align stack */
+ str lr, [sp, #-8]! /* push lr */
bl PIC_SYM(__divsi3, PLT)
- add sp, sp, #4 /* unalign stack */
mov r0, r1
- ldmfd sp!, {pc}
-
+ ldr lr, [sp], #8 /* pop lr */
+ RET
+END(__modsi3)
diff -r 69ed2138a0df -r a45fc3f47ba7 common/lib/libc/arch/arm/gen/umodsi3.S
--- a/common/lib/libc/arch/arm/gen/umodsi3.S Tue Nov 27 23:57:07 2012 +0000
+++ b/common/lib/libc/arch/arm/gen/umodsi3.S Wed Nov 28 01:35:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umodsi3.S,v 1.1 2012/10/10 02:16:54 christos Exp $ */
+/* $NetBSD: umodsi3.S,v 1.2 2012/11/28 01:35:05 matt Exp $ */
/*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@@ -22,9 +22,8 @@
*/
ENTRY(__umodsi3)
- stmfd sp!, {lr}
- sub sp, sp, #4 /* align stack */
+ str lr, [sp, #-8]! /* push lr */
bl PIC_SYM(__udivsi3, PLT)
- add sp, sp, #4 /* unalign stack */
mov r0, r1
- ldmfd sp!, {pc}
+ ldr lr, [sp], #8 /* pop lr */
+ RET
Home |
Main Index |
Thread Index |
Old Index