Commit d6adadd8 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Updated to use Hdr:APCS.<APCS>

Detail:
  26-bit builds OK.
  32-bit builds OK - don't rely on UMULL working.
Admin:
  Tested by examination of object code.

Version 0.01. Tagged as 'AsmUtils-0_01'
parent 66657bbd
/* (0.00)
/* (0.01)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.00
#define Module_MajorVersion_CMHG 0.01
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 20 Nov 1999
#define Module_Date_CMHG 26 Nov 1999
#define Module_MajorVersion "0.00"
#define Module_Version 0
#define Module_MajorVersion "0.01"
#define Module_Version 1
#define Module_MinorVersion ""
#define Module_Date "20 Nov 1999"
#define Module_Date "26 Nov 1999"
#define Module_FullVersion "PRERELEASE"
#define Module_FullVersion "0.01"
......@@ -32,11 +32,6 @@ No26bitCode SETL {TRUE}
AREA |AsmUtils$$SixtyFour1$$Code|, CODE, READONLY, PIC
EXPORT ui64_multiply_uu
ui64_multiply_uu
[ No26bitCode
UMULL a3, a4, a2, a3
STMIA a1, {a3, a4}
MOV pc, lr
|
FunctionEntry
MOVS lr, a2, LSR #16
BIC a2, a2, lr, LSL #16
......@@ -52,7 +47,6 @@ ui64_multiply_uu
ADC lr, lr, a2, LSR #16
STMIA a1, {a4, lr}
Return
]
AREA |AsmUtils$$SixtyFour2$$Code|, CODE, READONLY, PIC
EXPORT ui64_multiply_u64u64
......@@ -138,7 +132,7 @@ ui64_create
MOV a3, #0
ui64_create2
STMIA a1, {a2, a3}
MOV pc, lr
Return ,LinkNotStacked
AREA |AsmUtils$$SixtyFour6b$$Code|, CODE, READONLY, PIC
; extern int64_t *si64_create2(int64_t *, unsigned long, long);
......@@ -149,7 +143,8 @@ si64_create
MOV a3, a2, ASR #31 ; sign extension
si64_create2
STMIA a1, {a2, a3}
MOV pc, lr
Return ,LinkNotStacked
AREA |AsmUtils$$SixtyFour7a$$Code|, CODE, READONLY, PIC
; extern u_int64_t *ui64_shift_right(u_int64_t *, unsigned);
......@@ -161,7 +156,7 @@ ui64_shift_right
ORR a3, a3, a4, LSL ip
MOV a4, a4, LSR a2
STMIA a1, {a3, a4}
MOV pc, lr
Return ,LinkNotStacked
AREA |AsmUtils$$SixtyFour7b$$Code|, CODE, READONLY, PIC
; extern int64_t *si64_shift_right(int64_t *, unsigned);
......@@ -173,7 +168,7 @@ si64_shift_right
ORR a3, a3, a4, LSL ip
MOV a4, a4, ASR a2
STMIA a1, {a3, a4}
MOV pc, lr
Return ,LinkNotStacked
AREA |AsmUtils$$SixtyFour8$$Code|, CODE, READONLY, PIC
; extern unsigned long ui64_value(const u_int64_t *);
......@@ -183,6 +178,6 @@ si64_shift_right
ui64_value
si64_value
LDR a1, [a1, #0]
MOV pc, lr
Return ,LinkNotStacked
END
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment