Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7725a57a
Commit
7725a57a
authored
Jun 11, 2003
by
Deepak Saxena
Committed by
Russell King
Jun 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM PATCH] 1537/1: big-endian support for do_div64
Patch from Deepak Saxena
parent
32538906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
arch/arm/lib/div64.S
arch/arm/lib/div64.S
+23
-8
No files found.
arch/arm/lib/div64.S
View file @
7725a57a
#include <linux/linkage.h>
#include <linux/linkage.h>
#ifndef __ARMEB__
ql
.
req
r0
@
quotient
low
ql
.
req
r0
@
quotient
low
qh
.
req
r1
@
quotient
high
qh
.
req
r1
@
quotient
high
dl
.
req
r3
@
divisor
low
onl
.
req
r0
@
original
dividend
low
dh
.
req
r2
@
divisor
high
onh
.
req
r1
@
original
dividend
high
nl
.
req
r4
@
dividend
low
nl
.
req
r4
@
dividend
low
nh
.
req
r5
@
dividend
high
nh
.
req
r5
@
dividend
high
res
.
req
r4
@
result
#else
ql
.
req
r1
qh
.
req
r0
onl
.
req
r1
onh
.
req
r0
nl
.
req
r5
nh
.
req
r4
res
.
req
r5
#endif
dl
.
req
r3
@
divisor
low
dh
.
req
r2
@
divsor
high
ENTRY
(
do_div64
)
ENTRY
(
do_div64
)
stmfd
sp
!,
{
r4
,
r5
,
lr
}
stmfd
sp
!,
{
r4
,
r5
,
lr
}
mov
nl
,
r0
mov
nl
,
onl
movs
nh
,
r1
@
if
high
bits
are
zero
movs
nh
,
onh
@
if
high
bits
are
zero
movne
lr
,
#
33
movne
lr
,
#
33
moveq
lr
,
#
1
@
only
divide
low
bits
moveq
lr
,
#
1
@
only
divide
low
bits
moveq
nh
,
r0
moveq
nh
,
onl
1
:
cmp
nh
,
dh
1
:
cmp
nh
,
dh
bls
2
f
bls
2
f
add
lr
,
lr
,
#
1
add
lr
,
lr
,
#
1
movs
dh
,
dh
,
lsl
#
1
@
left
justify
di
vi
sor
movs
dh
,
dh
,
lsl
#
1
@
left
justify
disor
bpl
1
b
bpl
1
b
2
:
movs
nh
,
r1
2
:
movs
nh
,
onh
moveq
dl
,
dh
moveq
dl
,
dh
moveq
dh
,
#
0
moveq
dh
,
#
0
movne
dl
,
#
0
movne
dl
,
#
0
...
@@ -38,5 +53,5 @@ ENTRY(do_div64)
...
@@ -38,5 +53,5 @@ ENTRY(do_div64)
subs
lr
,
lr
,
#
1
subs
lr
,
lr
,
#
1
bne
3
b
bne
3
b
mov
r2
,
nl
mov
r2
,
res
ldmfd
sp
!,
{
r4
,
r5
,
pc
}
ldmfd
sp
!,
{
r4
,
r5
,
pc
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment