Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b98f10c0
Commit
b98f10c0
authored
Oct 25, 2008
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: faster ARMv6 FASTDIV()
Originally committed as revision 15712 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
590bd200
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
internal.h
libavutil/internal.h
+6
-5
No files found.
libavutil/internal.h
View file @
b98f10c0
...
@@ -140,11 +140,12 @@ extern const uint32_t ff_inverse[256];
...
@@ -140,11 +140,12 @@ extern const uint32_t ff_inverse[256];
#elif defined(HAVE_ARMV6)
#elif defined(HAVE_ARMV6)
static
inline
av_const
int
FASTDIV
(
int
a
,
int
b
)
static
inline
av_const
int
FASTDIV
(
int
a
,
int
b
)
{
{
int
r
;
int
r
,
t
;
__asm__
volatile
(
"cmp %2, #0
\n\t
"
__asm__
volatile
(
"cmp %3, #2
\n\t
"
"smmul %0, %1, %2
\n\t
"
"ldr %1, [%4, %3, lsl #2]
\n\t
"
"rsblt %0, %0, #0
\n\t
"
"lsrle %0, %2, #1
\n\t
"
:
"=r"
(
r
)
:
"r"
(
a
),
"r"
(
ff_inverse
[
b
]));
"smmulgt %0, %1, %2
\n\t
"
:
"=&r"
(
r
),
"=&r"
(
t
)
:
"r"
(
a
),
"r"
(
b
),
"r"
(
ff_inverse
));
return
r
;
return
r
;
}
}
#elif defined(ARCH_ARMV4L)
#elif defined(ARCH_ARMV4L)
...
...
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