Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4f928a4d
Commit
4f928a4d
authored
Jan 27, 2009
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: optimised mid_pred()
Originally committed as revision 16819 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1214bd86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mathops.h
libavcodec/arm/mathops.h
+18
-0
No files found.
libavcodec/arm/mathops.h
View file @
4f928a4d
...
...
@@ -90,4 +90,22 @@ static inline av_const MUL16(int ra, int rb)
#endif
#define mid_pred mid_pred
static
inline
av_const
int
mid_pred
(
int
a
,
int
b
,
int
c
)
{
int
m
;
__asm__
volatile
(
"mov %0, %2
\n\t
"
"cmp %1, %2
\n\t
"
"movgt %0, %1
\n\t
"
"movgt %1, %2
\n\t
"
"cmp %1, %3
\n\t
"
"movle %1, %3
\n\t
"
"cmp %0, %1
\n\t
"
"movgt %0, %1
\n\t
"
:
"=&r"
(
m
),
"+r"
(
a
)
:
"r"
(
b
),
"r"
(
c
));
return
m
;
}
#endif
/* AVCODEC_ARM_MATHOPS_H */
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