1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
.align 4
.globl funcSMULT1616
.globl funcUMULT1616
.globl funcSMULT32
.globl funcUMULT32
.globl funcUADDMULT1616
.globl funcSADDMULT1616
.globl funcSADDMULT32
.globl funcUADDMULT32
// Int32 funcSMULT1616(Int32 a,Int32 b,Int32 dummy1,Int32 dummy2)
funcSMULT1616:
mov r2,r0
mov r3,r1
smull r0,r1,r3,r2
mov r0,r0,lsr #16
orr r0,r0,r1,lsl #16
mov pc,lr
// Int32 funcUMULT1616(UInt32 a,UInt32 b,Int32 dummy1,Int32 dummy2)
funcUMULT1616:
mov r2,r0
mov r3,r1
umull r0,r1,r3,r2
mov r0,r0,lsr #16
orr r0,r0,r1,lsl #16
mov pc,lr
// Int32 funcSMULT32(Int32 a,Int32 b,Int32 dummy1,Int32 dummy2)
funcSMULT32:
mov r2,r0
mov r3,r1
smull r1,r0,r2,r3
mov pc,lr
// UInt32 funcUMULT32(UInt32 a,UInt32 b,Int32 dummy1,Int32 dummy2)
funcUMULT32:
mov r2,r0
mov r3,r1
umull r1,r0,r3,r2
mov pc,lr
// UInt32 funcUADDMULT1616(UInt32 a,UInt32 b,UInt32 c,UInt32 d)
funcUADDMULT1616:
stmfd r13!,{r4,r5}
mov r4,r0
mov r5,r1
umull r0,r1,r5,r4
umlal r0,r1,r2,r3
mov r0,r0,lsr #16
orr r0,r0,r1,lsl #16
ldmfd r13!,{r4,r5}
mov pc,lr
// Int32 funcSADDMULT1616(Int32 a,Int32 b,Int32 c,Int32 d)
funcSADDMULT1616:
stmfd r13!,{r4,r5}
mov r4,r0
mov r5,r1
smull r0,r1,r5,r4
smlal r0,r1,r2,r3
mov r0,r0,lsr #16
orr r0,r0,r1,lsl #16
ldmfd r13!,{r4,r5}
mov pc,lr
// Int32 funcSADDMULT32(Int32 a,Int32 b,Int32 c,Int32 d)
funcSADDMULT32:
stmfd r13!,{r4,r5}
mov r4,r0
mov r5,r1
smull r1,r0,r5,r4
smlal r1,r0,r2,r3
ldmfd r13!,{r4,r5}
mov pc,lr
// UInt32 funcUADDMULT32(UInt32 a,UInt32 b,UInt32 c,UInt32 d)
funcUADDMULT32:
stmfd r13!,{r4,r5}
mov r4,r0
mov r5,r1
umull r1,r0,r5,r4
umlal r1,r0,r2,r3
ldmfd r13!,{r4,r5}
mov pc,lr
.pool
|