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/quad Add RCSID.



details:   https://anonhg.NetBSD.org/src/rev/9c7a526f616f
branches:  trunk
changeset: 780755:9c7a526f616f
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Aug 05 06:34:09 2012 +0000

description:
Add RCSID.
Simplify.

diffstat:

 common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S |  20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r 78f3d45e2072 -r 9c7a526f616f common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S
--- a/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S  Sun Aug 05 06:33:51 2012 +0000
+++ b/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S  Sun Aug 05 06:34:09 2012 +0000
@@ -29,17 +29,23 @@
 
 #include <machine/asm.h>
 
+RCSID("$NetBSD: __aeabi_uldivmod.S,v 1.2 2012/08/05 06:34:09 matt Exp $")
+
+/*
+ * typedef struct { unsigned long long quo, rem } ulldiv_t;
+ * __value_in_regs ulldiv_t __aeabi_uldivmod(unsigned long long n,
+ *     unsigned long long d);
+ */
+
 ENTRY(__aeabi_uldivmod)
        push    {r4,lr}
        sub     sp, sp, #8
        mov     r4, sp
        bl      PLT_SYM(__qdivrem)
-#ifdef _ARM_ARCH_DWORD_OK
-       ldrd    r2, [sp], #8
-#else
-       ldr     r2, [sp], #4
-       ldr     r3, [sp], #4
-#endif
-       pop     {r4,lr}
+       /*
+        * The remainder is already on the stack just waiting to be popped
+        * into r2/r3.
+        */
+       pop     {r2-r4,lr}
        RET
 END(__aeabi_uldivmod)



Home | Main Index | Thread Index | Old Index