Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm/gen A small optimization
details: https://anonhg.NetBSD.org/src/rev/488458fbea7f
branches: trunk
changeset: 786190:488458fbea7f
user: matt <matt%NetBSD.org@localhost>
date: Fri Apr 19 13:45:45 2013 +0000
description:
A small optimization
diffstat:
lib/libc/arch/arm/gen/_setjmp.S | 5 ++---
lib/libc/arch/arm/gen/setjmp.S | 6 ++----
2 files changed, 4 insertions(+), 7 deletions(-)
diffs (39 lines):
diff -r 63ce6cd6a19c -r 488458fbea7f lib/libc/arch/arm/gen/_setjmp.S
--- a/lib/libc/arch/arm/gen/_setjmp.S Fri Apr 19 13:31:11 2013 +0000
+++ b/lib/libc/arch/arm/gen/_setjmp.S Fri Apr 19 13:45:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _setjmp.S,v 1.11 2013/04/19 13:14:10 skrll Exp $ */
+/* $NetBSD: _setjmp.S,v 1.12 2013/04/19 13:45:45 matt Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe
@@ -124,8 +124,7 @@
beq botch
/* Set return value */
- mov r0, r1
- teq r0, #0x00000000
+ movs r0, r1
moveq r0, #0x00000001
RET
diff -r 63ce6cd6a19c -r 488458fbea7f lib/libc/arch/arm/gen/setjmp.S
--- a/lib/libc/arch/arm/gen/setjmp.S Fri Apr 19 13:31:11 2013 +0000
+++ b/lib/libc/arch/arm/gen/setjmp.S Fri Apr 19 13:45:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setjmp.S,v 1.13 2013/04/19 13:14:10 skrll Exp $ */
+/* $NetBSD: setjmp.S,v 1.14 2013/04/19 13:45:45 matt Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe
@@ -136,9 +136,7 @@
beq .Lbotch
/* Set return value */
-
- mov r0, r1
- teq r0, #0x00000000
+ movs r0, r1
moveq r0, #0x00000001
RET
Home |
Main Index |
Thread Index |
Old Index