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
ea66f252
Commit
ea66f252
authored
Jul 15, 2008
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: ARMv6 optimised bswap_16/32
Originally committed as revision 14239 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
29c8b626
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bswap.h
libavutil/bswap.h
+4
-0
No files found.
libavutil/bswap.h
View file @
ea66f252
...
...
@@ -40,6 +40,8 @@ static av_always_inline av_const uint16_t bswap_16(uint16_t x)
asm
(
"rorw $8, %0"
:
"+r"
(
x
));
#elif defined(ARCH_SH4)
asm
(
"swap.b %0,%0"
:
"=r"
(
x
)
:
"0"
(
x
));
#elif defined(HAVE_ARMV6)
asm
(
"rev16 %0, %0"
:
"+r"
(
x
));
#else
x
=
(
x
>>
8
)
|
(
x
<<
8
);
#endif
...
...
@@ -62,6 +64,8 @@ static av_always_inline av_const uint32_t bswap_32(uint32_t x)
"swap.w %0,%0
\n
"
"swap.b %0,%0
\n
"
:
"=r"
(
x
)
:
"0"
(
x
));
#elif defined(HAVE_ARMV6)
asm
(
"rev %0, %0"
:
"+r"
(
x
));
#elif defined(ARCH_ARM)
uint32_t
t
;
asm
(
"eor %1, %0, %0, ror #16
\n\t
"
...
...
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